44
55 Created on: 28.10.2018 */
66char 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