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
2k
stars
432
forks
source link
Noise while buffering or recovering after "Lost synchronization" #338
Dear all,
I have noticed the MP3 streaming is more stable than last year, when I did the first testing.
However it still makes noise while buffering at start and when error 257 or 0x101 "Lost synchronization" occurs, I believe, in the libmad library.
Steps to reproduce:
ESP32 with NoDAC, transistor base connected to GPIO22 (GPIO25/26 don't work)
esp32 1.0.4 platform on Arduino 1.8.8 IDE
Example sketch StreamMP3FromHTTP with webradio http://158.69.114.190:8065/stream
Default buffer 2048 bytes, happens more often but recovers quickly
With 32768 bytes buffer, it happens less often but takes 3-6 seconds to recover
Which is the best command to silence output when Lost Synchronization occurs and resume volume once it starts playing?
I tried to do SetGain(0) when buffering and when the error appears, and SetGain(1.0) while playing, however digital noise still occur while buffering. Once it is buffered, it is silent and when SetGain(1.0) is applied music resumes.
Dear all, I have noticed the MP3 streaming is more stable than last year, when I did the first testing. However it still makes noise while buffering at start and when error 257 or 0x101 "Lost synchronization" occurs, I believe, in the libmad library.
Steps to reproduce: ESP32 with NoDAC, transistor base connected to GPIO22 (GPIO25/26 don't work) esp32 1.0.4 platform on Arduino 1.8.8 IDE Example sketch StreamMP3FromHTTP with webradio http://158.69.114.190:8065/stream
Default buffer 2048 bytes, happens more often but recovers quickly With 32768 bytes buffer, it happens less often but takes 3-6 seconds to recover
Which is the best command to silence output when Lost Synchronization occurs and resume volume once it starts playing? I tried to do SetGain(0) when buffering and when the error appears, and SetGain(1.0) while playing, however digital noise still occur while buffering. Once it is buffered, it is silent and when SetGain(1.0) is applied music resumes.
Thank you Nick