#2922

The below will repeat track one.


while(1) {
if(!MP3player.playTrack(1)) {
while (MP3player.isPlaying());
MP3player.stopTrack();
}
}

But it will block.

You can actually put

MP3player.playTrack(1);

in the loop and it will attempt to play track one, and if it is still playing it will simply respond with an error code. That can be ignored.