Reference   Language | Libraries | Comparison | Changes

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

Example


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

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

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.