libOGC
1.0
|
Functions | |
void | ASND_End () |
De-initializes the ASND lib. | |
s32 | ASND_GetAudioRate () |
Returns the current audio rate. | |
u32 | ASND_GetSampleCounter () |
Retrieves the global sample counter. | |
u32 | ASND_GetSamplesPerTick () |
Retrieves the samples sent from the IRQ in one tick. | |
u32 | ASND_GetTime () |
Returns the global time. | |
void | ASND_Init () |
Initializes the ASND lib and fixes the hardware sample rate to 48000. | |
s32 | ASND_Is_Paused () |
Returns sound paused status. | |
void | ASND_Pause (s32 paused) |
Used to pause (or unpause) the sound. | |
void | ASND_SetCallback (void(*callback)()) |
Sets a global callback for general purposes. | |
void | ASND_SetTime (u32 time) |
Set the global time. |
void ASND_End | ( | ) |
De-initializes the ASND lib.
s32 ASND_GetAudioRate | ( | ) |
Returns the current audio rate.
u32 ASND_GetSampleCounter | ( | ) |
Retrieves the global sample counter.
This counter is updated from the IRQ in steps of ASND_GetSamplesPerTick().
u32 ASND_GetSamplesPerTick | ( | ) |
Retrieves the samples sent from the IRQ in one tick.
u32 ASND_GetTime | ( | ) |
Returns the global time.
The time is updated from the IRQ.
void ASND_Init | ( | ) |
Initializes the ASND lib and fixes the hardware sample rate to 48000.
s32 ASND_Is_Paused | ( | ) |
Returns sound paused status.
void ASND_Pause | ( | s32 | paused | ) |
Used to pause (or unpause) the sound.
[in] | paused | If 1, sound is paused; sound can be unpaused with 0. |
void ASND_SetCallback | ( | void(*)() | callback | ) |
Sets a global callback for general purposes.
This callback is called from the IRQ.
[in] | callback | Callback function to assign. |
void ASND_SetTime | ( | u32 | time | ) |
Set the global time.
This time is updated from the IRQ.
[in] | time | Fix the current time, in milliseconds. |