Page 1 of 1
Adding/Removing files in a soundbank
Posted: Fri May 22, 2009 6:47 pm
by DarkShadow44
Can I files received from wifi or FAT add to a soundbank (and later remove it) ?
Format :
Another question, how can I get the name or the number of channels of a mod ?
Please Help !
Re: Adding/Removing files in a soundbank
Posted: Mon May 25, 2009 8:45 am
by eKid
DarkShadow44 wrote:Can I files received from wifi or FAT add to a soundbank (and later remove it) ?
Format :
No. It's too much trouble to add files during runtime with the current API.
DarkShadow44 wrote:how can I get the name or the number of channels of a mod ?
You can't
. The number of channels is not stored in the internal module header. The number of module channels used is determined by how many the module's pattern data uses.
Re: Adding/Removing files in a soundbank
Posted: Mon May 25, 2009 1:16 pm
by DarkShadow44
Is it then possible to use for each module a soundbank, load it from fat and then load and play the mod with
Code: Select all
u8* bank1;
//Load the bank from FAT
// ....
// Initialize MaxMod
mmInitDefaultMem((mm_addr)bank1);
// Load the music
mmLoad(0);
//Play it
mmStart(0, MM_PLAY_LOOP);
Or can't I use that to load differnet pointers ?
Are there problems with the different mem addresses (because I use "mm_addr") ?