Defines | |
#define | PA_PlaySimpleSound(PA_Channel, sound) PA_PlaySoundEx(PA_Channel, (void*)sound, (u32)sound##_size, PA_SoundOption.volume, PA_SoundOption.freq, PA_SoundOption.format) |
Simplest sound playing function... Takes the default options for volume, format, and rate (11025). You can change these options by using PA_SetDefaultSound | |
#define | PA_PlayMod(mod_snd) SndPlayMOD((u8*)mod_snd) |
Play a mod ! Thanks to Deku for that :p | |
#define | PA_StopMod() SndStopMOD() |
Stop playing the mod ! Thanks to Deku for that :p | |
#define | PA_PauseMod(u8) SndPauseMOD(u8) |
Pause the mod ! Thanks to Deku for that :p | |
Functions | |
void | PA_SetDefaultSound (u8 volume, int freq, s16 format) |
Set the default sound options (for the PlaySimpleSound function) | |
void | PA_InitSound (void) |
Initialise the Sound system, for mods and sound effects | |
void | PA_RegenStream (void) |
Test if a stream need regen | |
void | FillTheGap (u8 PA_Channel, u32 size) |
Fill datas in a stream tab | |
void | PA_PlaySoundEx2 (u8 PA_Channel, const void *data, s32 length, u8 volume, int freq, s16 format, BOOL repeat, int repeatPoint) |
Play a given sound effect, but chose your format | |
void | PA_PlaySoundEx (u8 PA_Channel, const void *data, s32 length, u8 volume, int freq, s16 format) |
Play a given sound effect, but chose your format | |
void | PA_PlayGBFSSoundEx (u8 PA_Channel, u16 FS_wav_number, u8 volume, int freq, s16 format) |
Play a given sound effect, but chose your format, from GBFS | |
void | PA_PlayGBFSSoundEx2 (u8 PA_Channel, u16 FS_wav_number, u8 volume, int freq, s16 format, BOOL repeat, int repeatPoint) |
Play a given sound effect, but chose your format and how to loop it, from GBFS | |
void | PA_PlayFSSoundEx (u8 PA_Channel, u16 PAFS_wav_number, u8 volume, int freq, s16 format) |
Play a given sound effect, but chose your format, from PAFS | |
void | PA_PlayFSSoundEx2 (u8 PA_Channel, u16 PAFS_wav_number, u8 volume, int freq, s16 format, BOOL repeat, int repeatPoint) |
Play a given sound effect, but chose your format, from PAFS | |
void | PA_PlayFSStreamSoundEx2 (u8 PA_Channel, u16 PAFS_wav_number, u8 volume, int freq, s16 format, BOOL repeat, int repeatPoint) |
Play a given sound effect, but chose your format and how to loop it, from PAFS with a stream effect | |
void | PA_PlaySound (u8 PA_Channel, const void *data, s32 length, u8 volume, u32 freq) |
Play a given sound effect, with default format (raw) | |
void | PA_PlayGBFSSound (u8 PA_Channel, u16 FS_wav_number, u8 volume, u32 freq) |
Play a given sound effect, with default format (raw), from GBFS | |
void | PA_PlayFSSound (u8 PA_Channel, u16 PAFS_wav_number, u8 volume, u32 freq) |
Play a given sound effect, with default format (raw), from PAFS | |
void | PA_PlayGBFSSimpleSound (u8 PA_Channel, u16 FS_wav_number) |
Simplest sound playing function... From GBFS... Takes the default options for volume, format, and rate (11025). You can change these options by using PA_SetDefaultSound | |
void | PA_PlayFSSimpleSound (u8 PA_Channel, u16 PAFS_wav_number) |
Simplest sound playing function... From PAFS... Takes the default options for volume, format, and rate (11025). You can change these options by using PA_SetDefaultSound | |
void | PA_PlayGBFSMod (u16 FS_mod_number) |
Play a mod from GBFS... Warning, it copies to RAM, so big mods will make the DS crash... | |
void | PA_PlayFSMod (u16 PAFS_mod_number) |
Play a mod from PAFS... Warning, it copies to RAM, so big mods will make the DS crash... | |
void | PA_UnpauseStream (u8 PA_Channel) |
Stop a Stream | |
u8 | PA_SoundChannelIsBusy (u8 PA_Channel) |
Check if a channel is busy... | |
s8 | PA_GetFreeSoundChannel (void) |
Get the first available channel | |
void | PA_SetSoundChannelVol (u8 PA_Channel, u8 Volume) |
Change the volume of a playing sound | |
void | PA_SetSoundVol (u8 Volume) |
Set the master sound volume | |
void | PA_SetSoundChannelPan (u8 PA_Channel, u8 Pan) |
Change the pan of a playing sound |
Play sounds ! Arm9 only