summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2022-11-23 17:15:06 +1100
committerjacqueline <me@jacqueline.id.au>2022-11-23 17:15:06 +1100
commita7df2855889055976956a58d2a36f23626371ee9 (patch)
tree16e180e57f84474acaeb1893208cc07e278af6f4 /src/drivers/include
parentdfa9ab6e04689b99267092e016a91d9254f94cd8 (diff)
downloadtangara-fw-a7df2855889055976956a58d2a36f23626371ee9.tar.gz
Mostly done pipeline arch. Now onto cleanup and building.
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/fatfs_audio_input.hpp69
1 files changed, 34 insertions, 35 deletions
diff --git a/src/drivers/include/fatfs_audio_input.hpp b/src/drivers/include/fatfs_audio_input.hpp
index 3753c136..110651d8 100644
--- a/src/drivers/include/fatfs_audio_input.hpp
+++ b/src/drivers/include/fatfs_audio_input.hpp
@@ -2,39 +2,38 @@
namespace drivers {
- class FatfsAudioInput {
- public:
- FatfsAudioInput(std::shared_ptr<SdStorage> storage);
- ~FatfsAudioInput();
-
- enum Status {
- /*
- * Successfully read data into the output buffer, and there is still
- * data remaining in the file.
- */
- OKAY,
-
- /*
- * The ringbuffer was full. No data was read.
- */
- RINGBUF_FULL,
-
- /*
- * Some data may have been read into the output buffer, but the file is
- * now empty.
- */
- FILE_EMPTY,
- };
- auto Process() -> Status;
-
- auto GetOutputBuffer() -> RingbufHandle_t;
-
- private:
- std::shared_ptr<SdStorage> storage_;
- RingbufHandle_t output_;
-
- std::string path_;
-
+class FatfsAudioInput {
+ public:
+ FatfsAudioInput(std::shared_ptr<SdStorage> storage);
+ ~FatfsAudioInput();
+
+ enum Status {
+ /*
+ * Successfully read data into the output buffer, and there is still
+ * data remaining in the file.
+ */
+ OKAY,
+
+ /*
+ * The ringbuffer was full. No data was read.
+ */
+ RINGBUF_FULL,
+
+ /*
+ * Some data may have been read into the output buffer, but the file is
+ * now empty.
+ */
+ FILE_EMPTY,
};
-
-} // namespace drivers
+ auto Process() -> Status;
+
+ auto GetOutputBuffer() -> RingbufHandle_t;
+
+ private:
+ std::shared_ptr<SdStorage> storage_;
+ RingbufHandle_t output_;
+
+ std::string path_;
+};
+
+} // namespace drivers