Home Forums Sparkfun MP3 Shield Library Support Forum Changing Volume while paused. Reply To: Changing Volume while paused.

#1835
Anonymous
Inactive

/* Get and Display the Audio Information */
} else if (key_command == 'i') {
MP3player.getAudioInfo();

} else if (key_command == 'p') {
MP3player.pauseDataStream();
Serial.println(F("Pausing"));

} else if (key_command == 'r') {
MP3player.resumeDataStream();
Serial.println(F("Resuming"));

} else if (key_command == 'R') {
MP3player.stopTrack();
MP3player.vs_init();
Serial.println(F("Reseting VS10xx chip"));

The above is quoted from MP3Shield_Library_Demo.ino, so that is where I got the idea. I have attempted to use the below code:

time = MP3player.currentPosition();
MP3player.stopTrack();
delay(5000);
MP3player.playMP3(currentTrackName);
MP3player.skipTo(time);

This produces an audible skip as a fraction of the start of the song is played before the skipTo happens.

I am open to other suggestions.