MuiscMaker shield - How to repeat a file
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- DrAudio
- Posts: 5
- Joined: Mon May 08, 2023 11:50 pm
MuiscMaker shield - How to repeat a file
I am needing to repeat an MP3 file indefinitely. I'm not quite sure how to approach that, as I don't see a 'repeat' of 'loop' command in the library.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: MuiscMaker shield - How to repeat a file
A simple while loop will suffice:
Code: Select all
while(true)
{
musicPlayer.playFullFile("/yourfile.mp3");
}
Please be positive and constructive with your questions and comments.