audio is breaking up #963
-
Hi, I'm using the example "A Simple SdFat Audio Player". My test mp3 files are normal: stereo format at 44.1 kHz with a duration of approximately 3 minutes and file sizes between 2Mb and 3Mb Still, the audio is breaking up and I get plenty of logs saying [E] Fade.h : 137 - channels=0 Does anyone have ideas what else I can try? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I guess it is helpful to add that I am using a "ESP32 devkit v1". Thanks so much in advance. |
Beta Was this translation helpful? Give feedback.
-
Try to find out why setAudioInfo() is not called automatically with the correct values from the decoder e.g. by setting the log level to Debug. The fading functionality needs to know how many channels it has to process and 0 channels is definitely not valid. A work around would be to call setAudioInfo() to initialise the player with some valid values. Are you sure that you installed the latest versions of all libraries. See https://github.com/pschatzmann/arduino-audio-tools/wiki/It's-not-working |
Beta Was this translation helpful? Give feedback.
Try to find out why setAudioInfo() is not called automatically with the correct values from the decoder e.g. by setting the log level to Debug. The fading functionality needs to know how many channels it has to process and 0 channels is definitely not valid.
A work around would be to call setAudioInfo() to initialise the player with some valid values.
Alternatively you can try to switch the automatic fade off by calling setAutoFade(false)
Are you sure that you installed the latest versions of all libraries. See https://github.com/pschatzmann/arduino-audio-tools/wiki/It's-not-working