Maxmod
Loading...
Searching...
No Matches
Enumerations | Functions
maxmod_headless.h File Reference

Global include of Maxmod headless. More...

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

Enumerations

enum  mm_headless_output_format {
  MM_OUTFMT_STEREO_U8 = 0 ,
  MM_OUTFMT_STEREO_S8 = 1
}
 Output formats supported by Maxmod. More...
 

Functions

bool mmEnd (void)
 Deinitializes Maxmod.
 
mm_callback mmGetEventHandler (void)
 Returns the event handler previously installed by the user.
 
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.
 
bool mmInitDefault (const char *soundbank_path, mm_word number_of_channels, mm_word sample_rate, mm_headless_output_format output_format)
 Initialize Maxmod with default settings with a soundbank stored in the filesystem.
 
bool mmInitDefaultMem (mm_addr soundbank, mm_word number_of_channels, mm_word sample_rate, mm_headless_output_format output_format)
 Initialize Maxmod with default settings with a soundbank stored in RAM.
 
void mmMix (mm_addr buffer, mm_word total_samples)
 This is the main routine-function that processes music and updates the sound output.
 
void mmSetEventHandler (mm_callback handler)
 Install handler to receive song events.
 

Detailed Description

Global include of Maxmod headless.