MrBuddyCasino / ESP32_MP3_Decoder

A internet radio and bluetooth speaker project for the Espressif ESP32
774 stars 182 forks source link

Buffer underflow issue #55

Closed medamarko closed 6 years ago

medamarko commented 6 years ago

Constantly getting buffer underflow.... Im using ESP Wroom 32 module. Do i need Wrover with PSram to run this app?

(164423) mad_decoder: Buffer underflow, need 2471 bytes

koos96 commented 6 years ago

I ran into the exact same issue.

Calling i2s_write instead of the deprecated function i2s_push_sample seems to fix it for me.

https://github.com/MrBuddyCasino/ESP32_MP3_Decoder/blob/580bbb94a4d0c0729af50d942941a616f925f93a/components/audio_renderer/audio_renderer.c#L194

I'll create a PR with the changes.

myzhan commented 6 years ago

I met the same issue, and this patch solved it.