RetroArch
gcmodplay.h
Go to the documentation of this file.
1 #ifndef __GCMODPLAY_H__
2 #define __GCMODPLAY_H__
3 
4 #include <gctypes.h>
5 #include "modplay/modplay.h"
6 
7 #ifdef __cplusplus
8  extern "C" {
9 #endif /* __cplusplus */
10 
11 typedef struct _modsndbuf {
16  void *usr_data;
17  void (*callback)(void *,u8 *,u32);
18 } MODSNDBUF;
19 
20 typedef struct _modplay {
26 } MODPlay;
27 
28 void MODPlay_Init(MODPlay *mod);
30 void MODPlay_SetStereo(MODPlay *mod,BOOL stereo);
31 s32 MODPlay_SetMOD(MODPlay *mod,const void *mem);
32 void MODPlay_Unload(MODPlay *mod);
36 s32 MODPlay_TriggerNote(MODPlay *mod,u32 chan,u8 inst,u16 freq,u8 vol);
38 void MODPlay_SetVolume(MODPlay * mod, s32 musicvolume, s32 sfxvolume);
39 
40 #ifdef __cplusplus
41  }
42 #endif /* __cplusplus */
43 
44 #endif
int32_t s32
32bit signed integer
Definition: gctypes.h:24
void MODPlay_SetStereo(MODPlay *mod, BOOL stereo)
MODSNDBUF soundBuf
Definition: gcmodplay.h:25
Definition: gcmodplay.h:20
BOOL playing
Definition: gcmodplay.h:22
Data type definitions.
s32 MODPlay_SetMOD(MODPlay *mod, const void *mem)
float f32
Definition: gctypes.h:43
Definition: memr.c:17
u32 chans
Definition: gcmodplay.h:14
struct _modsndbuf MODSNDBUF
BOOL stereo
Definition: gcmodplay.h:23
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
s32 MODPlay_Start(MODPlay *mod)
void MODPlay_Init(MODPlay *mod)
void(* callback)(void *, u8 *, u32)
Definition: gcmodplay.h:17
u32 freq
Definition: gcmodplay.h:12
s32 MODPlay_AllocSFXChannels(MODPlay *mod, u32 sfxchans)
void MODPlay_SetVolume(MODPlay *mod, s32 musicvolume, s32 sfxvolume)
void MODPlay_Unload(MODPlay *mod)
Definition: gcmodplay.h:11
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
f32 samples
Definition: gcmodplay.h:15
s32 MODPlay_Stop(MODPlay *mod)
u32 playfreq
Definition: gcmodplay.h:24
BOOL bits
Definition: gcmodplay.h:23
MOD mod
Definition: gcmodplay.h:21
unsigned int BOOL
Definition: gctypes.h:51
struct _modplay MODPlay
#define MOD(a)
Definition: adler32.c:45
u32 numSFXChans
Definition: gcmodplay.h:24
BOOL paused
Definition: gcmodplay.h:22
BOOL manual_polling
Definition: gcmodplay.h:23
s32 MODPlay_Pause(MODPlay *mod, BOOL)
s32 MODPlay_SetFrequency(MODPlay *mod, u32 freq)
u16 fmt
Definition: gcmodplay.h:13
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
s32 MODPlay_TriggerNote(MODPlay *mod, u32 chan, u8 inst, u16 freq, u8 vol)
void * usr_data
Definition: gcmodplay.h:16