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.

Audio > devkitpro maxmod file

#176969 - blessingta@hotmail.co.uk - Thu Nov 10, 2011 2:19 pm

hi

In the soundbank.h file, whats the meaning of the numbers attached to the audio files loaded?

Code:
#define SFX_AMBULANCE   0
#define SFX_BOOM   1
#define MOD_FLATOUTLIES   0
#define MOD_CONPRG_SND   1


#define MSL_NSONGS   2
#define MSL_NSAMPS   65
#define MSL_BANKSIZE   67
#define SFX_KENYAWESTHAHA   64

#176971 - sverx - Thu Nov 10, 2011 6:28 pm

don't worry about those (probably they're just 'pointers') just use the defined names :)
_________________
libXM7|NDS programming tutorial (Italiano)|Waimanu DS / GBA|A DS Homebrewer's Diary

#176972 - Dwedit - Thu Nov 10, 2011 6:31 pm

They are ID numbers created when the soundbank is created.
So instead of requesting #0 and hoping that it's Flat Out Lies, you instead request MOD_FLATOUTLIES. Then when soundbank.h is finally built, you know you're getting that exact song.

The names in the .h file are generated from your filenames.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."