I wanted to create this topic because I thaught it would be greate to gather the sound and music relative questions in one discussion. Considering that a lot of questions and topics regarding these subjects are pretty similar.
So I start first.. :
I put some music tracks in a little breackout game. There is one track for each level, the program reads the track from the sd card with
gb.level.play("mytrack", true);. The tracks are displayed globally fine, but since I put the music it happens regularly to the game to crash with an "ERROR 2 - hard fault" (ram overflow, or memory alignment, or undefined instruction, or exec XN address...).
So I imagine that's probably a RAM overflow problem because of the loading of the tracks or something like that...
My tracks are 8bits wav files, about 3.5Mo size each. Maybe this is too heavy ? Is there a size limit to watch when reading external files ? Or something to know about RAM managment ?
Or else, if this is not the problem so what could it be ?
Thank you for your help.