diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-12-02 13:39:00 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-12-02 13:39:00 +1100 |
| commit | 222c810b07ffc635fc7908d121e97e4d65ccc5c8 (patch) | |
| tree | 91c7b5c72a11770ebf3695bf0c234597b2bc419d /src/audio/include/audio_decoder.hpp | |
| parent | 71a4f5166f5491dc0982a18d62c63e28b3a52faa (diff) | |
| download | tangara-fw-222c810b07ffc635fc7908d121e97e4d65ccc5c8.tar.gz | |
fix build errors
Diffstat (limited to 'src/audio/include/audio_decoder.hpp')
| -rw-r--r-- | src/audio/include/audio_decoder.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/audio/include/audio_decoder.hpp b/src/audio/include/audio_decoder.hpp index 98ebdc71..a4508c3e 100644 --- a/src/audio/include/audio_decoder.hpp +++ b/src/audio/include/audio_decoder.hpp @@ -18,8 +18,13 @@ class AudioDecoder : public IAudioElement { AudioDecoder(); ~AudioDecoder(); - auto SetInputBuffer(StreamBufferHandle_t*) -> void; - auto SetOutputBuffer(StreamBufferHandle_t*) -> void; + auto SetInputBuffer(MessageBufferHandle_t*) -> void; + auto SetOutputBuffer(MessageBufferHandle_t*) -> void; + + auto ProcessStreamInfo(StreamInfo&& info) -> cpp::result<void, StreamError>; + auto ProcessChunk(uint8_t* data, std::size_t length) + -> cpp::result<size_t, StreamError>; + auto ProcessIdle() -> cpp::result<void, StreamError>; AudioDecoder(const AudioDecoder&) = delete; AudioDecoder& operator=(const AudioDecoder&) = delete; |
