diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-01-30 15:52:54 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-01-30 15:52:54 +1100 |
| commit | ef8d404b15e6d32506617a95aa3161fbe59ecdaf (patch) | |
| tree | f05d5f0a81b1477846e85bf44f0154db015b9789 /src/audio/include | |
| parent | 2cc0a38a1ac7fc54d7333dafa8b99479a7f5dc86 (diff) | |
| download | tangara-fw-ef8d404b15e6d32506617a95aa3161fbe59ecdaf.tar.gz | |
Continue ironing out i2s pipeline
still at least one heap corruption issue, plus the i2s write method
seems to block forever :/
Diffstat (limited to 'src/audio/include')
| -rw-r--r-- | src/audio/include/audio_decoder.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/include/audio_decoder.hpp b/src/audio/include/audio_decoder.hpp index a2591d25..d0f7469b 100644 --- a/src/audio/include/audio_decoder.hpp +++ b/src/audio/include/audio_decoder.hpp @@ -22,7 +22,7 @@ class AudioDecoder : public IAudioElement { AudioDecoder(); ~AudioDecoder(); - auto StackSizeBytes() const -> std::size_t override { return 8196; }; + auto StackSizeBytes() const -> std::size_t override { return 10 * 1024; }; auto InputMinChunkSize() const -> std::size_t override { // 128 kbps MPEG-1 @ 44.1 kHz is approx. 418 bytes according to the @@ -47,6 +47,7 @@ class AudioDecoder : public IAudioElement { std::optional<StreamInfo> stream_info_; std::optional<ChunkReader> chunk_reader_; + bool has_sent_stream_info_; std::size_t chunk_size_; bool has_samples_to_send_; bool needs_more_input_; |
