1 #ifndef __GCMODPLAY_H__
2 #define __GCMODPLAY_H__
5 #include "modplay/modplay.h"
9 #endif /* __cplusplus */
11 typedef struct _modsndbuf
{
17 void (*callback
)(void *,u8
*,u32
);
20 typedef struct _modplay
{
23 BOOL bits
,stereo
,manual_polling
;
24 u32 playfreq
,numSFXChans
;
28 void MODPlay_Init(MODPlay
*mod
);
29 s32
MODPlay_SetFrequency(MODPlay
*mod
,u32 freq
);
30 void MODPlay_SetStereo(MODPlay
*mod
,BOOL stereo
);
31 s32
MODPlay_SetMOD(MODPlay
*mod
,const void *mem
);
32 void MODPlay_Unload(MODPlay
*mod
);
33 s32
MODPlay_AllocSFXChannels(MODPlay
*mod
,u32 sfxchans
);
34 s32
MODPlay_Start(MODPlay
*mod
);
35 s32
MODPlay_Stop(MODPlay
*mod
);
36 s32
MODPlay_TriggerNote(MODPlay
*mod
,u32 chan
,u8 inst
,u16 freq
,u8 vol
);
37 s32
MODPlay_Pause(MODPlay
*mod
,BOOL
);
38 void MODPlay_SetVolume(MODPlay
* mod
, s32 musicvolume
, s32 sfxvolume
);
42 #endif /* __cplusplus */