Skip to content

Commit 379955f

Browse files
committed
board asserts on startup (before setup) after commit 1319512 #1183
The issue with audio.loop() taking a long time has returned for FLACs & some MP3s #1179
1 parent c7ee1ab commit 379955f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Audio.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Created on: 28.10.2018 */
66
char audioI2SVers[] = "\
7-
Version 3.4.3k ";
7+
Version 3.4.3l ";
88
/* Updated on: 17.10.2025
99
1010
Author: Wolle (schreibfaul1)
@@ -192,7 +192,7 @@ Audio::Audio(uint8_t i2sPort) {
192192
memset(&m_i2s_chan_cfg, 0, sizeof(i2s_chan_config_t));
193193
m_i2s_chan_cfg.id = (i2s_port_t)m_i2s_num; // I2S_NUM_AUTO, I2S_NUM_0, I2S_NUM_1
194194
m_i2s_chan_cfg.role = I2S_ROLE_MASTER; // I2S controller master role, bclk and lrc signal will be set to output
195-
m_i2s_chan_cfg.dma_desc_num = 32; // number of DMA buffer
195+
m_i2s_chan_cfg.dma_desc_num = 16; // number of DMA buffer
196196
m_i2s_chan_cfg.dma_frame_num = 512; // I2S frame number in one DMA buffer.
197197
m_i2s_chan_cfg.auto_clear = true; // i2s will always send zero automatically if no data to send
198198
m_i2s_chan_cfg.allow_pd = false;
@@ -5623,7 +5623,7 @@ int32_t Audio::audioFileRead(uint8_t* buff, size_t len) {
56235623
res = offset;
56245624
t = millis();
56255625
}
5626-
if (readed_bytes <= 0) vTaskDelay(5);
5626+
if (readed_bytes <= 0) break;
56275627
} else {
56285628
readed_bytes = m_client->read(buff + offset, len);
56295629
if (readed_bytes > 0) {
@@ -5633,7 +5633,7 @@ int32_t Audio::audioFileRead(uint8_t* buff, size_t len) {
56335633
res = offset;
56345634
t = millis();
56355635
}
5636-
if (readed_bytes <= 0) vTaskDelay(5);
5636+
if (readed_bytes <= 0) break;
56375637
}
56385638
if (t + 3000 < millis()) {
56395639
AUDIO_LOG_ERROR("timeout");

0 commit comments

Comments
 (0)