#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) |
#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) |
void PA_PlayPSG | ( | u8 | PA_Channel, | |
u8 | vol, | |||
u8 | pan, | |||
s32 | freq, | |||
u8 | duty | |||
) |
Utiliser les Programmable Sound Generators.
PA_Channel | Canal audio, de 8 à 15 | |
vol | Volume (0-127) | |
freq | Fréquence | |
duty | Duty (0-7) |
void PA_StopSound | ( | u8 | PA_Channel | ) |