You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks so much for this library. Really awesome. I'm working on a keyboard-like project. Press a key and a sample will play. I have a question about stopping a sample (mp3) mid-playback and starting another. If I start a mp3 and let it play out, everything is perfect. However, if I stop playback while the mp3 is playing, there's an audible short crackle most of the times. Strange thing is, this happens at the start of playback too sometimes, if the previous sample didn't play out entirely.
I'm using I2S playback with an MAX98357A DAC (same as adafruit) connected to an ESP32. MP3's are coming from a SD card. I brought the sketch (see below) I'm using down to a bare minimum of one button used to trigger one sample. Now, I've read some things in the other issues about DMA, buffers, objects needing to be deleted etc, but nothing seems to help. Deleting the file and/or mp3 object crashes my ESP. Any help is appreciated.
Answering my own question :). The problem with the tick at the start of playback seemed to be caused by not properly deleting the mp3 and file objects. I know there's word about updating the examples to better reflect this. That would have helped in this case...
The ticks at the end of the samples are caused by audio being cut off sharply if stopping mid-playback. More info in new issue/feature request #248
I meet the same issue. If the last mp3 is stopped at mid. It will have pop. Then, there will also be pop at the beginning of the next mp3.
Do you have the solution for this issue now?
First of all, thanks so much for this library. Really awesome. I'm working on a keyboard-like project. Press a key and a sample will play. I have a question about stopping a sample (mp3) mid-playback and starting another. If I start a mp3 and let it play out, everything is perfect. However, if I stop playback while the mp3 is playing, there's an audible short crackle most of the times. Strange thing is, this happens at the start of playback too sometimes, if the previous sample didn't play out entirely.
I'm using I2S playback with an MAX98357A DAC (same as adafruit) connected to an ESP32. MP3's are coming from a SD card. I brought the sketch (see below) I'm using down to a bare minimum of one button used to trigger one sample. Now, I've read some things in the other issues about DMA, buffers, objects needing to be deleted etc, but nothing seems to help. Deleting the file and/or mp3 object crashes my ESP. Any help is appreciated.
The text was updated successfully, but these errors were encountered: