0
0

Hello,

I’m using FMOD 3.75 on the Wii. I’ve used the fsbank tool to convert all of our .wav files into .fsb files with native GCADPCM compression. For now there is only one sample per .fsb file.

My first call to FMUSIC_LoadSong works just fine. However, when I go to load the second .fsb file I encounter a crash that appears to be deep inside FMOD.

This is everything FMOD prints out as it tries to load the file:

FMUSIC_LoadSong : /sounds/ambient/vrooom.fsb
FMUSIC_LoadInternal : Allocating instance
FSOUND_File_Open : name /sounds/ambient/vrooom.fsb, type FSOUND_FILE_FILENAME_BUFFERED, length 0
FMUSIC_Load : Determining format
FSOUND_FSB_Open : opening
FSOUND_FSB_Open : ‘FSB3’ ID check succeeded [FSB3]
FSOUND_FSB_Open : FSB version = 3.1 FSB mode = 0x00000000 FSB subsamples = 1
FSOUND_FSB_Open : Allocating 172 bytes for sample headers
FSOUND_FSB_Open : data starts at 196, total sample data size 68976
FSOUND_FSB_Open : opened. mode 02080041 freq 22050 compressed size 68976 decompressed size 241404
FMUSIC_LoadFSB : Opened successfully
FMUSIC_LoadFSB : Loading sample information (1) samples
FMUSIC_LoadFSB : Loading sample 0
FSOUND_Sample_AllocEx : index -2 length 60351 (samples) mode 02080041 deffreq 22050 defvol 255 defpan -1 defpri 255 channels 2
FSOUND_Output_Wii_Sample_Alloc : sptr 0x931112a0
FSOUND_Output_Wii_Sample_Alloc : Allocating hardware sample (length = 60351)
FSOUND_Output_Wii_Sample_Alloc : stereo
FSOUND_Sample_Alloc : done
FSOUND_Sample_SetDefaultsEx : sptr 0x931112a0 deffreq -1 defvol -1 defpan -1 defpri -1 varfreq 0 varvol 0 varpan 0
FSOUND_Sample_SetMinMaxDistance : 0x931112a0 min 1.00 max 1000000.00
FSOUND_Sample_SetLoopPoints : name vrooom.wav loopstart 0 loopend 60350. Sample length = 60351
FMUSIC_LoadFSB : Uploading samples

FMUSIC_LoadFSB : Uploading vrooom.wav – 68976 bytes filepos 196
FSOUND_Output_Wii_Sample_Lock : length = 32768 ptr = 0x931113a0
FSOUND_Output_Wii_Sample_Lock : length = 32768 ptr = 0x931113a0
FSOUND_Output_Wii_Sample_Lock : length = 3440 ptr = 0x931113a0

And this is the call stack at the time of the crash:

FMUSIC_LoadSong
FMUSIC_LoadInternal
FMUSIC_Load
FMUSIC_LoadFSB
FSOUND_Memory_Pool_Free
FSOUND_Memory_Pool_Set
memset
__fill_mem

Does anyone know what I could possiblely be doing wrong?

Thanks.

Jesse

  • You must to post comments
0
0

Could you give us a copy of your fsb? You could send it to us at support@fmod.org or upload it to http://ftp.fmod.org l:upload p:upload

  • You must to post comments
0
0

There’s no problems with loading FSB’s that I can reproduce. Did you try modifying the FSB example in the SDK to load 2 FSBs?

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.