From 26eb580043ad176bdc58d996f30d470e1073ef00 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 2 May 2024 21:52:59 +1000 Subject: move driver includes into a subdir as well --- src/drivers/include/fatfs_audio_input.hpp | 45 ------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/drivers/include/fatfs_audio_input.hpp (limited to 'src/drivers/include/fatfs_audio_input.hpp') 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 - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#pragma once - -namespace drivers { - -class FatfsAudioInput { - public: - FatfsAudioInput(std::shared_ptr 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 storage_; - RingbufHandle_t output_; - - std::pmr::string path_; -}; - -} // namespace drivers -- cgit v1.2.3