Maxmod
Loading...
Searching...
No Matches
Functions
maxmod7.h File Reference

Global include of Maxmod for DS (ARM7 side). More...

#include <mm_types.h>
#include <maxmod_common.h>

Functions

void mmFrame (void)
 This is the main routine-function that processes music and updates the sound output.
 
mm_word mmGetModuleCount (void)
 Returns the number of modules available in the soundbank.
 
mm_word mmGetSampleCount (void)
 Returns the number of samples available in the soundbank.
 
void mmInstall (int fifo_channel)
 Installs the Maxmod system on the ARM7 side.
 
mm_bool mmIsInitialized (void)
 Returns whether or not the system is initialized and ready for playback.
 
void mmLockChannels (mm_word bitmask)
 Lock audio channels to prevent Maxmod from using them.
 
static mm_word mmReverbBufferSize (mm_word bit_depth, mm_word sampling_rate, mm_word delay)
 This calculates the amount of memory needed for the reverb buffer.
 
void mmReverbConfigure (mm_reverb_cfg *config)
 Configures the reverb system.
 
void mmReverbDisable (void)
 Disables the reverb system and restores the channels.
 
void mmReverbEnable (void)
 Enables the reverb system.
 
void mmReverbStart (mm_reverbch channels)
 Starts reverb output in the selected channels.
 
void mmReverbStop (mm_reverbch channels)
 Stops reverb output for the selected channels.
 
void mmSelectMode (mm_mode_enum mode)
 Switches the audio mode for Maxmod DS.
 
void mmStreamClose (void)
 Close audio stream.
 
mm_word mmStreamGetPosition (void)
 Get number of samples elapsed since the stream was opened.
 
void mmStreamOpen (mm_stream *stream, mm_addr wavebuffer, mm_addr workbuffer)
 Opens an audio stream.
 
void mmStreamUpdate (void)
 Check buffering state and fill stream with data.
 
void mmStreamVolume (mm_byte volume)
 Changes the volume of the audio stream.
 
void mmUnlockChannels (mm_word bitmask)
 Unlocks audio channels to allow Maxmod to use them.
 

Detailed Description

Global include of Maxmod for DS (ARM7 side).