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
2.01k stars 432 forks source link

fixed: AudioGeneratorMP3 reads uninitialized memory on first iteration #522

Open RomanLut opened 2 years ago

RomanLut commented 2 years ago

On the first iteration, AudioGeneratorMP3 is reading synth->pcm.samples[0][samplePtr] array which is not initialized. May cause Pop sound due to garbage in array.