From ef8d404b15e6d32506617a95aa3161fbe59ecdaf Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 30 Jan 2023 15:52:54 +1100 Subject: Continue ironing out i2s pipeline still at least one heap corruption issue, plus the i2s write method seems to block forever :/ --- src/audio/include/audio_decoder.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/audio/include/audio_decoder.hpp') 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 stream_info_; std::optional chunk_reader_; + bool has_sent_stream_info_; std::size_t chunk_size_; bool has_samples_to_send_; bool needs_more_input_; -- cgit v1.2.3