|
bool | AS_Init (u8 mode) |
| Initialize ASlib Returns true on success, false on failure.
|
|
static void | AS_ReserveChannel (u8 channel) |
| Reserve a particular DS channel (so it won't be used for the sound pool)
|
|
static void | AS_SetMasterVolume (u8 volume) |
| Set the master volume (0..127)
|
|
static void | AS_SetDefaultSettings (u8 format, s32 rate, u8 delay) |
| Set the default sound settings.
|
|
int | AS_SoundPlay (SoundInfo sound) |
| Play a sound using the priority system. Returns the sound channel allocated or -1 if the sound was skipped.
|
|
static int | AS_SoundDefaultPlay (u8 *data, u32 size, u8 volume, u8 pan, u8 loop, u8 prio) |
| Play a sound using the priority system with the default settings. Returns the sound channel allocated or -1 if the sound was skipped.
|
|
void | AS_SetSoundPan (u8 chan, u8 pan) |
| Set the panning of a sound (0=left, 64=center, 127=right)
|
|
void | AS_SetSoundVolume (u8 chan, u8 volume) |
| Set the volume of a sound (0..127)
|
|
void | AS_SetSoundRate (u8 chan, u32 rate) |
| Set the sound sample rate.
|
|
static void | AS_SoundStop (u8 chan) |
| Stop playing a sound.
|
|
void | AS_SoundDirectPlay (u8 chan, SoundInfo sound) |
| Play a sound directly using the given channel.
|
|
void | AS_MP3DirectPlay (u8 *buffer, u32 size) |
| Play a MP3 directly from memory.
|
|
bool | AS_MP3StreamPlay (const char *path) |
| Play a MP3 stream.
|
|
static void | AS_MP3Pause () |
| Pause a MP3.
|
|
static void | AS_MP3Unpause () |
| Unpause a MP3.
|
|
void | AS_MP3Stop () |
| Stop a MP3.
|
|
static int | AS_GetMP3Status () |
| Get the current MP3 status.
|
|
static void | AS_SetMP3Volume (u8 volume) |
| Set the MP3 volume (0..127)
|
|
void | AS_SetMP3Pan (u8 pan) |
| Set the MP3 panning (0=left, 64=center, 127=right)
|
|
static void | AS_SetMP3Delay (u8 delay) |
| Set the default MP3 delay mode (warning: high values can cause glitches)
|
|
static void | AS_SetMP3Loop (u8 loop) |
| Set the MP3 loop mode (false = one shot, true = loop indefinitely)
|
|
static void | AS_SetMP3Rate (s32 rate) |
| Set the MP3 sample rate.
|
|
void | AS_SoundVBL () |
| Regenerate buffers for MP3 stream. Must be called each VBlank (only needed if mp3 is used)
|
|