MuiscMaker shield - How to repeat a file

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
DrAudio
 
Posts: 5
Joined: Mon May 08, 2023 11:50 pm

MuiscMaker shield - How to repeat a file

Post by DrAudio »

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.

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: MuiscMaker shield - How to repeat a file

Post by adafruit_support_bill »

A simple while loop will suffice:

Code: Select all

while(true)
{
  musicPlayer.playFullFile("/yourfile.mp3");
}

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”