Arduino_AdvancedAnalog - AdvancedI2S.dequeue()

Returns a sample buffer from the queue for writing. This function can be called in half-duplex output or full-duplex modes. When the buffer is done, it can be added to the I2S write queue by calling write() (see I2S)

Syntax

SampleBuffer buf = i2s.dequeue();

for (size_t i=0; i<buf.size(); i++) {
    buf[i] =  SAMPLES_BUFFER[i];
}

i2s.write(buf);