libdragon
|
Audio Subsystem. More...
Go to the source code of this file.
Functions | |
void | audio_init_ex (const int frequency, int numbuffers, int maxsamples, void(*cb)()) |
Initialize the audio subsystem (extended) | |
void | audio_init (const int frequency, int numbuffers) |
Initialize the audio subsystem. | |
void | audio_write (const short *const buffer) |
Write a chunk of audio data. | |
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. | |
void | audio_set_num_samples (int numsamples) |
Change the number of stereo samples to write to each buffer. | |
short * | audio_get_next_buffer (int *lastbuf) |
Return the address of the next buffer to fill. | |
volatile int | audio_send_buffer (int lastbuf) |
Start audio DMA on buffer. |
Audio Subsystem.