ArduinoSound - AudioOutI2S.isPaused()

Description

Query if the input started using play() or loop() has been paused using pause()

Syntax

AudioOutI2S.isPaused();

Returns

1 if input is currently paused, 0 otherwise

Example


  // check if playback is paused
  if (AudioOutI2S.isPaued()) {
    // playback has paused

    Serial.println("playback paused");
    while (1); // do nothing
  }