for OFFSET = 0 goto OFFSET findloc OFFSET string "FSB5" goto OFFSET getdstring FSB_SIGN 4 # FSOUND_FSB_HEADER_FSB5 (fsb.h) get version long get numsamples long get shdrsize long get namesize long get datasize long xmath SIZE "0x3c + shdrsize + namesize + datasize" log "" OFFSET SIZE next OFFSET + SIZE
to extract the .fsb files from a .bank file. This works for the most part, but I am running into problems with some banks.
The audio files in the banks are .ogg so I'm using fsb_aud_ext.exe to get them. Trying to extract the .fsb made from the .bank (see attachment) gives me the error "End of file unexpectedly reached while trying to read essential data (truncated?)"
The resulting .ogg files are complete but have added static in the end. I assume this is a problem with the generated .fsb files? This problem also occurs with files where the error mentioned above does not happen.
Hm, strange. I tried different dll versions and different computers and I always get audio with static and three files throw an error. This is my output, any idea what's causing this?