Home Forums Sparkfun MP3 Shield Library Support Forum Next track by pushing button – some code enlightenment Reply To: Next track by pushing button – some code enlightenment

#2625

You need only add

MP3player.stopTrack();

in front of the

MP3player.playTrack(??);

To stop any currently playing tracks, and it won’t care if there is no track playing, it will just fall through.