Page 1 of 1

too much data in memory

Posted: Mon Jan 19, 2009 2:27 pm
by naroin
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

Re: too much data in memory

Posted: Tue Jan 20, 2009 3:25 am
by eKid
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.

Re: too much data in memory

Posted: Thu Jan 22, 2009 12:11 pm
by naroin
thanks!