ArduinoSound - AudioOutI2S.play()

Description

Play the input using the I2S interface

Syntax

AudioOutI2S.play(input);

Parameters

input: input to check (type AudioIn)

Returns

1 if input has successfully started playing, 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);