User`s manual

124 www.rabbit.com Applications Programming
flexAudioLoad
int flexAudioLoad(char *buffer, int bufsize);
DESCRIPTION
Loads audio samples to be played into the audio driver buffer. These samples will not actually play
unless flexAudioPlay() is called.
You only need to call flexAudioPlay() once when starting. Data in subsequent calls
will also be played as long as the audio buffer does not become empty.
PARAMETER
buffer Pointer to an array of bytes to be loaded.
bufsize Number of bytes in the buffer.
RETURN VALUE
The number of bytes actually loaded into the driver. This number may be smaller than the request-
ed bufsize or it may even be 0 because of limits on the size of the audio driver's internal buffer.
SEE ALSO
flexSpeakerPWM, flexAudioActivate, flexAudioShutdown,
flexAudioPlay, flexAudioStop, flexAudioPlaying,
flexAudioSetRate