Play audio effects from SD frequently #1100
-
Im having issues on my project and is driving me crazy.
After calling this function several times, the board stops playing any sound. I.m sure the function gets called correctly so my guess is that i'm not managing the state of the board in a proper way by just calling the two instructions
I've tried calling adding the .end() function before changing audio file form the player, but the issue still remains.
This is the log I usually get when everything is working.
When it stops working the logs become way smaller missing all the i2c part, however, no sound is played.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I am sorry, but I am currently not able to do any investigation and I have never been using the AudioPlayer this way. My suggestion would be to consider to use a simpler design and just copy your file to an EncodedAudioStream.... |
Beta Was this translation helpful? Give feedback.
I am sorry, but I am currently not able to do any investigation and I have never been using the AudioPlayer this way.
Maybe you can discover what the issue is If you set the log level to debug but if the copy lines are ending you are probabliy at the end of the file, so there is nothing to copy anymore. I would also expect that if you call end, you will need to call begin again!
My suggestion would be to consider to use a simpler design and just copy your file to an EncodedAudioStream....