Data Structures | |
struct | pgeAudioLibChannelInfo |
Defines | |
#define | PGE_NUM_AUDIO_CHANNELS 4 |
#define | PGE_NUM_AUDIO_SAMPLES 1024 |
#define | PGE_VOLUME_MAX 0x8000 |
Typedefs | |
typedef void(*) | pgeAudioLibCallback (void *buf, unsigned int reqn, void *pdata) |
Functions | |
int | pgeAudioLibInit (int priority) |
void | pgeAudioLibShutdown () |
void | pgeAudioLibSetVolume (int channel, int left, int right) |
void | pgeAudioLibSetChannelCallback (int channel, pgeAudioLibCallback callback, void *data) |
int | pgeAudioLibOutBlocking (unsigned int channel, unsigned int left, unsigned int right, void *data) |
#define PGE_NUM_AUDIO_CHANNELS 4 |
#define PGE_NUM_AUDIO_SAMPLES 1024 |
#define PGE_VOLUME_MAX 0x8000 |
typedef void(* ) pgeAudioLibCallback(void *buf, unsigned int reqn, void *pdata) |
Audio callback
int pgeAudioLibInit | ( | int | priority | ) |
Initialise the Audio Library
priority | - Priority to use for the audio threads. |
int pgeAudioLibOutBlocking | ( | unsigned int | channel, | |
unsigned int | left, | |||
unsigned int | right, | |||
void * | data | |||
) |
Panned Output
channel | - The audio channel. | |
left | - Left volume. | |
right | - Right volume. | |
data | - The data to pass. |
void pgeAudioLibSetChannelCallback | ( | int | channel, | |
pgeAudioLibCallback | callback, | |||
void * | data | |||
) |
Setup an audio callback
channel | - The audio channel. | |
callback | - The callback function. | |
data | - The data to pass. |
void pgeAudioLibSetVolume | ( | int | channel, | |
int | left, | |||
int | right | |||
) |
Set channel volume
channel | - The audio channel. | |
left | - Left volume. | |
right | - Right volume. |
void pgeAudioLibShutdown | ( | ) |
Shutdown the Audio Library