PA_Sound.h File Reference

Sound info. More...

Go to the source code of this file.

Data Structures

struct  PA_SoundOptions

Defines

#define SND_MEM_POOL_SIZE   256*1024
#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(bool)   SndPauseMOD(bool)
 Pause the mod ! Thanks to Deku for that :p

Functions

void PA_SetDefaultSound (u8 volume, s32 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_PlaySoundEx (u8 PA_Channel, const void *data, s32 length, u8 volume, s32 freq, s16 format)
 Play a given sound effect, but chose your format
void PA_PlayGBFSSoundEx (u8 PA_Channel, u16 FS_wav_number, u8 volume, s32 freq, s16 format)
 Play a given sound effect, but chose your format, from GBFS
void PA_PlayFSSoundEx (u8 PA_Channel, u16 PAFS_wav_number, u8 volume, s32 freq, s16 format)
 Play a given sound effect, but chose your format, from PAFS
void PA_PlaySound (u8 PA_Channel, const void *data, s32 length, u8 volume, s32 freq)
 Play a given sound effect, with default format (raw)
void PA_PlayGBFSSound (u8 PA_Channel, u16 FS_wav_number, u8 volume, s32 freq)
 Play a given sound effect, with default format (raw), from GBFS
void PA_PlayFSSound (u8 PA_Channel, u16 PAFS_wav_number, u8 volume, s32 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...

Variables

TransferSound snd
u32 * sndMemPool
PA_SoundOptions PA_SoundOption
u32 * FS_mod
u32 * FS_wav [16]


Detailed Description

Sound info.

Play sounds ! Arm9 only


Generated on Sun Jan 22 11:46:40 2006 for PAlib by  doxygen 1.3.9.1