Reference Language | Libraries | Comparison | Changes
ArduinoSound
AudioOutI2S.resume()
Description
Resume playback of the input that was paused using pause() out the I2S interface
Syntax
AudioOutI2S.resume();
Returns
1 if input is successfully resumed, 0 on failure
Example
…
// check if the I2S output can play the Audio input
if (!AudioOutI2S.canPlay(audioInput)) {
Serial.println("unable to play audio input using I2S!");
while (1); // do nothing
}
// start playback
Serial.println("starting playback");
AudioOutI2S.play(audioInput);
delay(10000); // wait for 10 seconds
AudioOutI2S.pause(); // pause playback
delay(10000); // wait for 10 seconds
AudioOutI2S.resume(); // resume playback
…
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.