Play the input in a loop using the I2S interface
AudioOutI2S.loop(input);
input: input to check (type AudioIn)
1 if input has successfully started playing, 0 on failure
AudioOutI2S.pause()`
Pause the current input that is playing out the I2S interface
AudioOutI2S.pause();
1 if input is successfully paused, 0 on failure
// 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