summaryrefslogtreecommitdiff
path: root/src/drivers/include/fatfs_audio_input.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-05-02 21:52:59 +1000
committerjacqueline <me@jacqueline.id.au>2024-05-02 21:52:59 +1000
commit26eb580043ad176bdc58d996f30d470e1073ef00 (patch)
treee499b1115108effe91c961452c1ee101d07beeac /src/drivers/include/fatfs_audio_input.hpp
parent7d7f7755d17e1e0a2348d75d797097f166b70471 (diff)
downloadtangara-fw-26eb580043ad176bdc58d996f30d470e1073ef00.tar.gz
move driver includes into a subdir as well
Diffstat (limited to 'src/drivers/include/fatfs_audio_input.hpp')
-rw-r--r--src/drivers/include/fatfs_audio_input.hpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/drivers/include/fatfs_audio_input.hpp b/src/drivers/include/fatfs_audio_input.hpp
deleted file mode 100644
index 705f6e7d..00000000
--- a/src/drivers/include/fatfs_audio_input.hpp
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 jacqueline <me@jacqueline.id.au>
- *
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-#pragma once
-
-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::pmr::string path_;
-};
-
-} // namespace drivers