gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > maxmod where is mmutil?

#165346 - a128 - Wed Dec 17, 2008 6:00 pm

where is the tool mmutil to convert soundbanks for maxmod?

I can't find it in the maxmod distri.


It would be great if the maxmod API alows loadSoundEfx(wav file)

#165348 - eKid - Wed Dec 17, 2008 6:31 pm

mmutil is included with devkitARM r24 binaries.

When you make your soundbank, you can include WAV files too, which can then be loaded and played during runtime, http://www.maxmod.org/ref/functions/mmLoadEffect.html

#165353 - a128 - Wed Dec 17, 2008 9:18 pm

eKid wrote:
mmutil is included with devkitARM r24 binaries.

When you make your soundbank, you can include WAV files too, which can then be loaded and played during runtime, http://www.maxmod.org/ref/functions/mmLoadEffect.html


Ok... mmutil is hidden in devkitARm r24...why not post this tool in the maxmod distri?!


you can only load from memory.....so I have to write my own method to load the soundbank from a file?!!! hmmm..

#165357 - eKid - Thu Dec 18, 2008 12:13 am

The soundbank can also be referenced from a file, rather than loaded into memory.
Code:
mmInitDefault( "soundbank.bin" ); // setup with soundbank file
mmLoadEffect( SFX_BLASTER ); // load effect
mmEffect( SFX_BLASTER ); // play effect

#168980 - iainprice - Sun Jun 07, 2009 10:57 pm

Which part of the makefile generates the soundbank.h?

I am putting the maxmod into my project but the .h is not getting autogenerated....

Thanks.

#168986 - melw - Mon Jun 08, 2009 2:17 pm

Add these lines to your makefile and edit to fit your needs:

Code:
MUSIC       :=  maxmod_data

export AUDIOFILES   :=   $(foreach dir,$(notdir $(wildcard $(MUSIC)/*.*)),$(CURDIR)/$(MUSIC)/$(dir))

#---------------------------------------------------------------------------------
# rule to build soundbank from music files
#---------------------------------------------------------------------------------
soundbank.bin : $(AUDIOFILES)
#---------------------------------------------------------------------------------
   @mmutil $^ -d -osoundbank.bin -hsoundbank.h

See devkitPro NDS examples (everything under audio/maxmod) for further information.