libdragon
|
Audio Subsystem. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | audio_fill_buffer_callback) (short *buffer, size_t numsamples) |
Will be called periodically when more sample data is needed. | |
Functions | |
void | audio_init (const int frequency, int numbuffers) |
Initialize the audio subsystem. | |
void | audio_set_buffer_callback (audio_fill_buffer_callback fill_buffer_callback) |
Install a audio callback to fill the audio buffer when required. | |
void | audio_pause (bool pause) |
Pause or resume audio playback. | |
volatile int | audio_can_write () |
Return whether there is an empty buffer to write to. | |
void | audio_write_silence () |
Write a chunk of silence. | |
void | audio_close () |
Close the audio subsystem. | |
int | audio_get_frequency () |
Return actual frequency of audio playback. | |
int | audio_get_buffer_length () |
Get the number of stereo samples that fit into an allocated buffer. | |
short * | audio_write_begin (void) |
Start writing to the first free internal buffer. | |
void | audio_write_end (void) |
Complete writing to an internal buffer. | |
int | audio_push (const short *buffer, int nsamples, bool blocking) |
Push a chunk of audio data (high-level function) | |
void | audio_write (const short *const buffer) |
Write a chunk of audio data. | |
Audio Subsystem.