Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Read sbk files with foobar

Featured Replies

  • Author
  • Localization

amgb, posted Tue Jan 11, 2022 6:26 pm (69010)


Hi guys,

I have extracted the audio files of The Force Unleashed game (ps2 version) and I have sbk files my computer recognizes as audio files but I can't read them. I get the message :

Unable to open item for playback (Unsupported format or corrupted file):
"E:\Users\Alexis\Desktop\tfu\ps2\fin\csvo001_07_00_p03scfr.sbk"

Here is in attachment a sample of the audio files I have. Does anybody know how I can open them ?

Thanks in advance !
  • Author
  • Localization

BloodRaynare, posted Tue Jan 11, 2022 9:06 pm (69011)


This should go to Audio/Video section, but oh well...
Here's a txth scripts to play your sbk files
Save these text below as ".sbk.txth"

Code:
codec = PSX
channels = @0x04
name_offset = 0x10
start_offset = @0x30
data_size = @0x34
sample_rate = @0x38$2
num_samples = data_size


Then just drag the sbk files to foobar.
  • Author
  • Localization

AlphaTwentyThree, posted Thu Jan 13, 2022 6:34 am (69048)


Or use this script I've quickly written to produce files playable by vgmstream:

Code:
idstring "SB01"
get CH long
goto 0x10
getDstring NAME 0x20
goto 0x38
get FREQ short
set OFFSET 0x60
get SIZE asize
math SIZE -= OFFSET
if CH == 1
   callfunction VAG 1
else
   callfunction SS2 1
endif

startfunction SS2
   xmath PSIZE "SIZE = 0x28"
   putVarChr MEMORY_FILE2 PSIZE 0
   log MEMORY_FILE2 0 0
   set MEMORY_FILE binary "\x53\x53\x68\x64\x18\x00\x00\x00\x10\x00\x00\x00\xb0\x36\x00\x00\x02\x00\x00\x00\xc0\x2f\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\x53\x53\x62\x64\x00\xe8\x11\x00"
   append
   log MEMORY_FILE OFFSET SIZE
   append
   putVarChr MEMORY_FILE 0x24 SIZE long
   putVarChr MEMORY_FILE 0xc FREQ long
   putVarChr MEMORY_FILE 0x14 INTERLEAVE long
   putVarChr MEMORY_FILE 0x10 CH byte
   get SIZE asize MEMORY_FILE
   string NAME = ".ss2"
   log NAME 0 SIZE MEMORY_FILE
endfunction

startfunction VAG
   xmath PSIZE "SIZE = 0x30"
   putVarChr MEMORY_FILE PSIZE 0
   log MEMORY_FILE 0 0
   set MEMORY_FILE binary "\x56\x41\x47\x70\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x04\x50\x00\x00\x22\x56\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
   append
   log MEMORY_FILE OFFSET SIZE
   append
   endian big
   putVarChr MEMORY_FILE 0xc SIZE long
   putVarChr MEMORY_FILE 0x10 FREQ long
   get SIZE asize MEMORY_FILE
   string NAME = ".vag"
   log NAME 0 SIZE MEMORY_FILE
endfunction VAG


Only works for mono files for now, need a stereo example to adjust the script. Just run the script on all kinds of files and send me the ones that turn up with an *.ss2 ending.
  • Author
  • Localization

amgb, posted Fri Jan 14, 2022 4:36 pm (69077)


Thanks for the txth script, it works. Where shall use the big script ? I am not familiar with vgmstream. If you want, here are all the files I extracted (only the RKV files from the ps2 iso). https://we.tl/t-WBCRR91ugd
  • Author
  • Localization

AlphaTwentyThree, posted Fri Jan 14, 2022 5:57 pm (69078)


foobar2000 plus the vgmstream plugin can play those files. Google it. ;)
What do you mean by "big script"?
  • Author
  • Localization

amgb, posted Fri Jan 14, 2022 9:29 pm (69089)


I meant the second one in I received in this forum.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.