earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
1.98k stars 432 forks source link

AudioGeneratorMP3::begin - Stop output on OOM #658

Closed ChuckMash closed 2 months ago

ChuckMash commented 6 months ago

AudioGeneratorMP3 starts its output, but if OOM during begin(), never stops its output. This leads to downstream issues, including mixer not processing audio from the dead stub or any active ones.