DS GBA
mmInitDefault

Back to Index

Prototype

void mmInitDefault( char* soundbank );
void mmInitDefault( mm_addr soundbank, mm_word number_of_channels );

Parameters

soundbank (ds)

Filename of soundbank. A soundbank file can be created with the Maxmod Utility.

soundbank (gba)

Memory address of soundbank (in ROM). A soundbank file can be created with the Maxmod Utility.

number_of_channels

Number of module/mixing channels to allocate. Must be greater or equal to the channel count in your modules.

Description

Initialize Maxmod with default settings.

For GBA, this function uses these default settings (and allocates memory): 16KHz mixing rate, channel buffers in EWRAM, wave buffer in EWRAM, and mixing buffer in IWRAM. It also links the VBlank interrupt to mmVBlank with the libgba interrupt handler.

For DS, this function also sets up the internal soundbank interface to use the file specified.

See Also

mmInitDefaultMem, mmInit, mmInstall