Playing multiple files outside setup() #551
-
Hi, At the risk of sounding completely stupid, I've been trying to play a couple of .mp3 files with a pause between them, but I can't seem to get it to work outside of the setup() I know it may be very bad form, but I think the easiest way to explain it to use a working example from another library that doesn't work for ESP32 :( Using the TMRpcm library, I can call a file like this -
wait some period of time then -
Then to ensure the audio file plays to the end -
Any assistance would be greatly appreciated. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Why don't you just use the AudioPlayer class? See https://github.com/pschatzmann/arduino-audio-tools/wiki/The-Audio-Player-Class |
Beta Was this translation helpful? Give feedback.
Why don't you just use the AudioPlayer class? See https://github.com/pschatzmann/arduino-audio-tools/wiki/The-Audio-Player-Class
The delay can be defined on the AudioSource with setTimeoutAutoNext()