Failed to open sound file from memory (Supported file format but file is malformed.)
if(musicBuffer[i])
{
/* initialize */
}
size_t getMusicSize(short int id)So if I pass in an invalid 'id' I have no way to detect that and I just get the size of the last music - doesn't seem very robust to me...
{
int i;
for(i=0 ; i<n_files_music ; i++)
{
if(musicIndexes.ID == id)
break;
}
return (size_t)musicIndexes.length;
}