Maxmod
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations
mm_types.h File Reference

Type definitions for Maxmod. More...

Data Structures

struct  mmreverbcfg
 Reverb configuration settings. More...
 
struct  t_mmdssample
 Sample structure. More...
 
struct  t_mmdssystem
 DS setup information. More...
 
struct  t_mmgbasystem
 GBA setup information, passed to mmInit(). More...
 
struct  t_mmsoundeffect
 Information for playing a sound effect. More...
 
struct  t_mmstream
 Information about a stream to be opened. More...
 

Typedefs

typedef void * mm_addr
 Memory address (pointer)
 
typedef unsigned char mm_bool
 Boolean. Non-zero = true, zero = false.
 
typedef unsigned char mm_byte
 Generic 8-bit value.
 
typedef mm_word(* mm_callback) (mm_word msg, mm_word param)
 Function pointer definition for handling song events.
 
typedef struct t_mmdssample mm_ds_sample
 Sample structure.
 
typedef struct t_mmdssystem mm_ds_system
 DS setup information.
 
typedef struct t_mmgbasystem mm_gba_system
 GBA setup information, passed to mmInit().
 
typedef unsigned short mm_hword
 Generic 16-bit value.
 
typedef void * mm_reg
 Hardware register (pointer)
 
typedef struct mmreverbcfg mm_reverb_cfg
 Reverb configuration settings.
 
typedef unsigned short mm_sfxhand
 Sound effect handle.
 
typedef struct t_mmsoundeffect mm_sound_effect
 Information for playing a sound effect.
 
typedef struct t_mmstream mm_stream
 Information about a stream to be opened.
 
typedef mm_word(* mm_stream_func) (mm_word length, mm_addr dest, mm_stream_formats format)
 Function pointer definition for handling stream fill requests (DS mode).
 
typedef unsigned int mm_word
 Generic 32-bit value.
 

Enumerations

enum  mm_mixmode {
  MM_MIX_8KHZ ,
  MM_MIX_10KHZ ,
  MM_MIX_13KHZ ,
  MM_MIX_16KHZ ,
  MM_MIX_18KHZ ,
  MM_MIX_21KHZ ,
  MM_MIX_27KHZ ,
  MM_MIX_31KHZ
}
 Software mixing rates for GBA system. More...
 
enum  mm_mode_enum {
  MM_MODE_A ,
  MM_MODE_B ,
  MM_MODE_C
}
 Audio modes for the DS system. Pass to mmSelectMode(). More...
 
enum  mm_pmode {
  MM_PLAY_LOOP ,
  MM_PLAY_ONCE
}
 Module looping modes for mmStart(). More...
 
enum  mm_reverbch {
  MMRC_LEFT = 1 ,
  MMRC_RIGHT = 2 ,
  MMRC_BOTH = 3
}
 Selection of reverb channels to start/stop. More...
 
enum  mm_reverbflags {
  MMRF_MEMORY =0x01 ,
  MMRF_DELAY =0x02 ,
  MMRF_RATE =0x04 ,
  MMRF_FEEDBACK =0x08 ,
  MMRF_PANNING =0x10 ,
  MMRF_LEFT =0x20 ,
  MMRF_RIGHT =0x40 ,
  MMRF_BOTH =0x60 ,
  MMRF_INVERSEPAN =0x80 ,
  MMRF_NODRYLEFT =0x100 ,
  MMRF_NODRYRIGHT =0x200 ,
  MMRF_8BITLEFT =0x400 ,
  MMRF_16BITLEFT =0x800 ,
  MMRF_8BITRIGHT =0x1000 ,
  MMRF_16BITRIGHT =0x2000 ,
  MMRF_DRYLEFT =0x4000 ,
  MMRF_DRYRIGHT =0x8000
}
 Reverb configuration flags. More...
 
enum  mm_stream_formats {
  MM_STREAM_8BIT_MONO = 0x0 ,
  MM_STREAM_8BIT_STEREO = 0x1 ,
  MM_STREAM_16BIT_MONO = 0x2 ,
  MM_STREAM_16BIT_STEREO = 0x3
}
 Formats for software streaming. More...
 
enum  mm_stream_timer
 Timer selection for counting samples during streaming.
 

Detailed Description

Type definitions for Maxmod.