When some WAV and MP3 files finish playing, the amplifier continues with clicking noises #1628
-
Hi All, I have designed my own audio board, using an ESP32 WROOM and SD-CARD reader. The output is connected to a Texas Instruments TAS5760L I2S Class D Amplifier IC. Using Phils excellent Audio Tools library, I can play MP3 and WAV files, plus I have a separate I2S digital microphone input, which also works successfully. Please see my PCB assembled below. During my prototyping, everything was floorless after much work, but since building the finished PCB, a strange problem occurs and I cannot seem to diagnose the fault. Libraries as follows:
Audio objects and parameters as follows:
Using Interupts, I enable either the MP3 / WAV player or Microphone, below is the Player function:
In the loop, I detect when the file has finished playing, and this all works correctly, as follows:
Now, I can stop the clicking, easily, by using When I trigger the next track, I simply call This works OK, but after 10 triggers, the ESP crashes and I receive the following error:
Interestingly, I can replicate the problem, as it only occurs with certain audio tracks, but using tools such as Audacity, I cannot find any errors with the files themselves and they play on other players OK, including my prototype. Does anyone have any clues how I can solve this or implement a work around, such as ending and starting the player functions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you have a back trace ? It would be interesting to see why this is called... ps. I committed a correction which removes this check. |
Beta Was this translation helpful? Give feedback.
Do you have a back trace ? It would be interesting to see why this is called...
ps. I committed a correction which removes this check.