Loading files from a filesystem

support for the gba/nds sound library from www.maxmod.org

Moderator: eKid

Post Reply
whiplash
Posts: 7
Joined: Fri Jan 13, 2012 2:50 am

Loading files from a filesystem

Post by whiplash » Fri Jan 13, 2012 2:55 am

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...

mtheall
Posts: 210
Joined: Thu Feb 03, 2011 10:47 pm

Re: Loading files from a filesystem

Post by mtheall » Fri Jan 13, 2012 4:38 pm

Use

Code: Select all

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

whiplash
Posts: 7
Joined: Fri Jan 13, 2012 2:50 am

Re: Loading files from a filesystem

Post by whiplash » Fri Jan 13, 2012 8:23 pm

mtheall wrote:Use

Code: Select all

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

t377y000
Posts: 52
Joined: Wed Jun 02, 2010 3:14 am
Location: United States

Re: Loading files from a filesystem

Post by t377y000 » Fri Jan 13, 2012 11:22 pm

do you guy s know if its possible to load models from the rom with nitrofile system or that listed above?

mtheall
Posts: 210
Joined: Thu Feb 03, 2011 10:47 pm

Re: Loading files from a filesystem

Post by mtheall » Sat Jan 14, 2012 12:05 am

Of course. You can load anything you want from the nitro filesystem. Maybe you're asking the wrong question.

t377y000
Posts: 52
Joined: Wed Jun 02, 2010 3:14 am
Location: United States

Re: Loading files from a filesystem

Post by t377y000 » Wed May 30, 2012 10:11 pm

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?

mtheall
Posts: 210
Joined: Thu Feb 03, 2011 10:47 pm

Re: Loading files from a filesystem

Post by mtheall » Wed May 30, 2012 10:42 pm

Look at the examples 'filesystem/nitrofs/nitrodir'

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests