Maxmod
Loading...
Searching...
No Matches
Data Fields
t_mmdssystem Struct Reference

DS setup information. More...

#include <mm_types.h>

Data Fields

mm_word fifo_channel
 FIFO channel to use for communicating with ARM7. Usually FIFO_MAXMOD.
 
mm_wordmem_bank
 Pointer to a memory region to be used for managing modules/samples:
 
mm_word mod_count
 Number of modules in the soundbank file. Write MSL_NSONGS here.
 
mm_word samp_count
 Number of samples in the soundbank file. Write MSL_NSAMPS here.
 

Detailed Description

DS setup information.

More about mem_bank: Maxmod needs some memory to manage samples and modules that are loaded/unloaded into/from memory. This pointer should reference an area of memory that is mod_count+samp_count WORDS in size:

#include "my_soundbank.h"
u32 my_mem_bank[ MSL_BANKSIZE ];

MSL_BANKSIZE is defined as the sum of the module and sample count in the soundbank.

The mmInitDefault()/mmInitDefaultMem() functions may be used to quickly initialize maxmod default settings. Using these functions, mod_count and samp_count will be automatically filled using data from the soundbank, and mem_bank will be allocated with malloc().

Field Documentation

◆ mem_bank

mm_word* t_mmdssystem::mem_bank

Pointer to a memory region to be used for managing modules/samples:

mm_word mem_bank[MSL_BANKSIZE];
unsigned int mm_word
Generic 32-bit value.
Definition mm_types.h:32
mm_word * mem_bank
Pointer to a memory region to be used for managing modules/samples:
Definition mm_types.h:328

The documentation for this struct was generated from the following file: