Summary

Play audio data provided by the Arduino sketch. This object provides functions to allow the sketch code to push data into the audio system.

Audio Connections

PortPurpose
Out 0Sound Output

Functions

play(int16);

not yet implemented

play(int16[], length);

not yet implemented

getBuffer();

Returns a pointer to an array of 128 int16. This buffer is within the audio library memory pool, providing the most efficient way to input data to the audio system. The buffer is likely to be populated by previously used data, so the entire 128 words should be written before calling playBuffer(). Only a single buffer should be requested at a time. This function may return NULL if no memory is available.

playBuffer();

Transmit the buffer previously obtained from getBuffer().

Examples

4320 LED Video+Sound Project

Notes

TODO: many caveats....