From 3b30165fbe707e6adf21df2bc6ffde34964d6b3f Mon Sep 17 00:00:00 2001 From: Kevin Ahrendt Date: Mon, 11 Nov 2024 15:07:38 +0000 Subject: [PATCH] increase default ring buffer duration for better compatibility with existing components --- esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp b/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp index 70f1c8fbd8..06334534fa 100644 --- a/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp +++ b/esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp @@ -17,7 +17,7 @@ static const uint8_t DMA_BUFFER_DURATION_MS = 15; static const size_t DMA_BUFFERS_COUNT = 4; static const size_t TASK_DELAY_MS = DMA_BUFFER_DURATION_MS * DMA_BUFFERS_COUNT / 2; -static const uint32_t RING_BUFFER_DURATION_MS = 2 * DMA_BUFFER_DURATION_MS * DMA_BUFFERS_COUNT; +static const uint32_t RING_BUFFER_DURATION_MS = 500; static const size_t TASK_STACK_SIZE = 4096; static const ssize_t TASK_PRIORITY = 23;