diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-12-06 13:17:56 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-12-06 13:17:56 +1100 |
| commit | f35bb64c2b8dbb72fd15f1880e4d01d263660910 (patch) | |
| tree | 4696065116c21147da02b6e6470a6215b343081f /src/audio/audio_decoder.cpp | |
| parent | e0b2562cc4e0e5ae73efacddf68b83bd9fbb6acb (diff) | |
| download | tangara-fw-f35bb64c2b8dbb72fd15f1880e4d01d263660910.tar.gz | |
basic i2s output element
Diffstat (limited to 'src/audio/audio_decoder.cpp')
| -rw-r--r-- | src/audio/audio_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp index 31cfb50e..c48756ac 100644 --- a/src/audio/audio_decoder.cpp +++ b/src/audio/audio_decoder.cpp @@ -40,7 +40,7 @@ auto AudioDecoder::SetOutputBuffer(MessageBufferHandle_t* buffer) -> void { output_buffer_ = buffer; } -auto AudioDecoder::ProcessStreamInfo(StreamInfo& info) +auto AudioDecoder::ProcessStreamInfo(const StreamInfo& info) -> cpp::result<void, AudioProcessingError> { stream_info_ = info; @@ -62,7 +62,7 @@ auto AudioDecoder::ProcessStreamInfo(StreamInfo& info) return {}; } -auto AudioDecoder::ProcessChunk(cpp::span<std::byte>& chunk) +auto AudioDecoder::ProcessChunk(const cpp::span<std::byte>& chunk) -> cpp::result<size_t, AudioProcessingError> { if (current_codec_ == nullptr) { // Should never happen, but fail explicitly anyway. |
