Functions

audio.h File Reference

Audio Subsystem. More...

Go to the source code of this file.

Functions

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.

Detailed Description

Audio Subsystem.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines