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: tmpSourceSamplePositionF32P32 jumping to incorrect position causing distorted sound #539

Closed ecoriag closed 2 years ago

ecoriag commented 2 years ago

By playing some midi files I noticed some notes were being randomly distorted. The cause was not using the fixed point value for tmpLoopStart for positioning tmpSourceSamplePositionF32P32