Référence du fichier include/nds/arm9/PA_Sound.h

#include "../Sound9.h"
#include "PA_IPC.h"
#include "PA_General.h"

Macros

#define PA_PlaySimpleSound(name)   AS_SoundDefaultPlay((u8*)name, (u32)name##_size, 127, 64, false, 0)
#define PA_PlaySoundRepeat(name)   AS_SoundDefaultPlay((u8*)name, (u32)name##_size, 127, 64, true, 0)
#define PA_SoundChannelIsBusy(channel)   IPC_Sound->chan[channel].busy
#define PA_SetSoundChannelPan(chan, pan)   AS_SetSoundPan(chan, pan)
#define PA_SetSoundChannelVol(chan, vol)   AS_SetSoundVolume(chan, vol)
#define PA_StopSound(chan)   AS_SoundStop(chan)
#define PA_SetSoundVol(vol)   AS_SetMasterVolume(vol)
#define PA_PlayMod(file)
#define PA_StopMod()   modControl->command = MT_MSG_END

Fonctions

void PA_PlayPSG (u8 PA_Channel, u8 vol, u8 pan, s32 freq, u8 duty)
 Utiliser les Programmable Sound Generators.
void PA_StopSound (u8 PA_Channel)

Documentation des macros

#define PA_PlayMod ( file   ) 

Valeur :

{modControl->module = (u8*)file; \
                                                                                        modControl->command = MT_MSG_INIT;}

#define PA_PlaySimpleSound ( name   )     AS_SoundDefaultPlay((u8*)name, (u32)name##_size, 127, 64, false, 0)

#define PA_PlaySoundRepeat ( name   )     AS_SoundDefaultPlay((u8*)name, (u32)name##_size, 127, 64, true, 0)

#define PA_SetSoundChannelPan ( chan,
pan   )     AS_SetSoundPan(chan, pan)

#define PA_SetSoundChannelVol ( chan,
vol   )     AS_SetSoundVolume(chan, vol)

#define PA_SetSoundVol ( vol   )     AS_SetMasterVolume(vol)

#define PA_SoundChannelIsBusy ( channel   )     IPC_Sound->chan[channel].busy

 
#define PA_StopMod (  )     modControl->command = MT_MSG_END

#define PA_StopSound ( chan   )     AS_SoundStop(chan)


Documentation des fonctions

void PA_PlayPSG ( u8  PA_Channel,
u8  vol,
u8  pan,
s32  freq,
u8  duty 
)

Utiliser les Programmable Sound Generators.

Paramètres:
PA_Channel Canal audio, de 8 à 15
vol Volume (0-127)
freq Fréquence
duty Duty (0-7)

void PA_StopSound ( u8  PA_Channel  ) 


Généré le Sat Jun 13 12:56:59 2009 pour PAlib - Programmer's Arsenal par  doxygen 1.5.8