#173934 - Ruben - Sun May 09, 2010 6:32 am
Hi.
So I'm in the final stages of my Midi player [and yes, it WILL be adapted to libnds before that =P]... and just one thing remains unsettled: dynamic loading.
From what I've seen, official games load songs from their filesystem, followed by loading banks [instruments] and samples. While overall it seems easy... what exactly should be done? I mean... the main issues are keeping track of what has been malloc'd so that it may be free'd after. I have been able to load from a sound database file quite successfully, but only with this problem. I can't think of any proper way to keep track of what to free after it's all loaded.
Any ideas?
So I'm in the final stages of my Midi player [and yes, it WILL be adapted to libnds before that =P]... and just one thing remains unsettled: dynamic loading.
From what I've seen, official games load songs from their filesystem, followed by loading banks [instruments] and samples. While overall it seems easy... what exactly should be done? I mean... the main issues are keeping track of what has been malloc'd so that it may be free'd after. I have been able to load from a sound database file quite successfully, but only with this problem. I can't think of any proper way to keep track of what to free after it's all loaded.
Any ideas?