ArduinoSound - AudioOutI2S.isPlaying()

Description

Query if the input started using play() or loop() is currently playing

Syntax

AudioOutI2S.isPlaying();

Returns

1 if input is currently playing, 0 otherwise

Example


  // check if playback is still going on
  if (!AudioOutI2S.isPlaying()) {
    // playback has stopped

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