too much data in memory

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

Moderator: eKid

Post Reply
naroin
Posts: 6
Joined: Mon Jan 19, 2009 1:49 pm

too much data in memory

Post by naroin » Mon Jan 19, 2009 2:27 pm

Hi,

I'm trying to use maxmod to add sound to my DS game (dstroy).
There are many musics and sound in this game, about 2mb data.
When i try to add all these files in my binary, the game crashes everytime : I think it has not enough memory to run, as (if i had well understand) every data is loaded in memory via "sounddata".

Is there another way i can add music files in the project?
Or a way to add many data files without using memory?

thanks

eKid
Posts: 65
Joined: Sat Dec 06, 2008 6:07 pm
Contact:

Re: too much data in memory

Post by eKid » Tue Jan 20, 2009 3:25 am

There's another route you can take with the soundbank data. You can leave the soundbank data out of your program, but during initialization just setup the filesystem and use mmInitDefault( "soundbank.bin" ); to tell maxmod to read data from that file instead of everything being in memory. Then, only what you 'mmLoad' will be in memory and mmUnload will free it.

naroin
Posts: 6
Joined: Mon Jan 19, 2009 1:49 pm

Re: too much data in memory

Post by naroin » Thu Jan 22, 2009 12:11 pm

thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests