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

artefacts with AACDecode #671

Open lidense opened 3 months ago

lidense commented 3 months ago

Hi I am using your library in a webradio project that decodes aac. when I use an outSample of 2048X2 there is a crash after AACDecode, if I double outSample size to 2048X4) AACDecode works (is this due to SBR?) but when I play the outSample on my M5StackCore 2 using output->ConsumeSample(lastSample)) in a loop there are small artefacts like fine crackles. If instead as a test I record the outSample on the SD card for a minute or so and then play the file with Audacity (48000Hz, 2 channels, 16bits) the sound is perfect. Any suggestions? Thanks