Page 1 of 1

Loading files from a filesystem

Posted: Fri Jan 13, 2012 2:55 am
by whiplash
Does this program support loading arbitrary files using libfat? Or does it only support songs hard-coded into the .nds file during compilation? I'm working on something with a large soundtrack (~70 IT modules, 4mb total) and it just doesn't seem feasible to keep every song loaded in memory...

Re: Loading files from a filesystem

Posted: Fri Jan 13, 2012 4:38 pm
by mtheall
Use

Code: Select all

mmInitDefault(char* soundbank_filename);
I've used this successfully with a 128MB+ soundbank file.

Re: Loading files from a filesystem

Posted: Fri Jan 13, 2012 8:23 pm
by whiplash
mtheall wrote:Use

Code: Select all

mmInitDefault(char* soundbank_filename);
I've used this successfully with a 128MB+ soundbank file.
Ah, thank you! :D

Re: Loading files from a filesystem

Posted: Fri Jan 13, 2012 11:22 pm
by t377y000
do you guy s know if its possible to load models from the rom with nitrofile system or that listed above?

Re: Loading files from a filesystem

Posted: Sat Jan 14, 2012 12:05 am
by mtheall
Of course. You can load anything you want from the nitro filesystem. Maybe you're asking the wrong question.

Re: Loading files from a filesystem

Posted: Wed May 30, 2012 10:11 pm
by t377y000
mtheall wrote:Of course. You can load anything you want from the nitro filesystem. Maybe you're asking the wrong question.
how tho? what code?

Re: Loading files from a filesystem

Posted: Wed May 30, 2012 10:42 pm
by mtheall
Look at the examples 'filesystem/nitrofs/nitrodir'