new USB_GetHIDDescriptor()
[libogc.git] / gc / gcmodplay.h
bloba59d077533bbb5a32882c0fe13a68be0a0033403
1 #ifndef __GCMODPLAY_H__
2 #define __GCMODPLAY_H__
4 #include <gctypes.h>
5 #include "modplay/modplay.h"
7 #ifdef __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
11 typedef struct _modsndbuf {
12 u32 freq;
13 u16 fmt;
14 u32 chans;
15 f32 samples;
16 void *usr_data;
17 void (*callback)(void *,u8 *,u32);
18 } MODSNDBUF;
20 typedef struct _modplay {
21 MOD mod;
22 BOOL playing,paused;
23 BOOL bits,stereo,manual_polling;
24 u32 playfreq,numSFXChans;
25 MODSNDBUF soundBuf;
26 } MODPlay;
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);
40 #ifdef __cplusplus
42 #endif /* __cplusplus */
44 #endif