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

#1848

The pre-release version  version has getState() to query if paused, etc… It is how pause is now toggled in the example.

enum state_m {
  uninitialized,
  initialized,
  deactivated,
  loading,
  ready, // aka IDLE!
  playback,
  paused_playback,
  testing_memory,
  testing_sinewave,
  }; //enum state_m

if( MP3player.getState() == paused_playback) {
  MP3player.resumeMusic();
  Serial.println(F("Resuming"));
}

I would think the below would accomplish the same goal.

if (MP3player.getState() == paused_playback) volumeChange();