GAUDIO
The GAUDIO module provides high level API for handling audio in- and output. The module provides built-in decoders but does also allow to use external codecs. See #External decoder.
API reference
The API reference of the GAUDIO module can be found here.
Play back
Before any audio can be played, the audio device has to be initialized using gaudioPlayInit()
. Both, the sample format and the sample frequency are set by this function call.
After initialization, gaudioPlay()
can be used to output audio data. gaudioPause()
can be used to pause any current audio output. Resuming after a pause is done calling gaudioPlay()
without any sample buffer reference.
Calling gaudioStop()
will completely stop a current audio playback.
External decoder
If your audio output devices does have an internal processor to decode audio formats, use GAUDIO_PLAY_FORMAT_FILE
as the third parameter for gaudioPlayInit()
. The GAUDIO module will simply pass the audio data unmodified to the audio device.
Record
ToDo