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.

Shrek the Third/Superslam *Sound.dat/hdr (Multiplatform)

Featured Replies

  • Author
  • Localization

JackTheRipper, posted Mon Jan 10, 2022 2:18 am (68946)


This format was seen in SEGA Soccer Slam, some Black Box devs made an unusual format.
Speaking of Soccer Slam, it is packed in DATA.BIN/DIR on PS2
Microsoft Xbox is XboxSound.dat/hdr, it uses RIFF IMA (0x69)
Microsoft Xbox 360 is XenonSound.dat/hdr, it uses RIFF XMA
Nintendo GameCube is GCSound.dat/hdr, it uses GCub header
Nintendo Wii is WiiSound.dat/hdr, it is the same as Gamecube
Sony PlayStation 2 is PS2Sound.dat/hdr, it uses VAG
Windows is PCSound.dat/hdr, it uses OGG vorbis

WiiSound.dat
WiiSound.hdr

Shrek 3 uses 0x1 subinterleave, sample rate is at 0x8 32-bit BE, channels is at 0x4 32-bit BE, datasize is at 0xc 32-bit BE, possible left coef is at 0x10, possible right coef is at 0x30, data start at 0x60.
  • Author
  • Localization

AlphaTwentyThree, posted Thu Jan 20, 2022 2:29 pm (69199)


Well, the hdr file doesn't contain any useful information as everything needed is already in the .dat archive. There's no TOC, so I wrote a scanner that automatically gets the file names in the process. The thing is that the output format isn't recognized correctly by vgmstream so maybe an update is in order there. I don't have any stereo .dsp files at hand otherwise I'd write a converter.
Anyway, here's the script for extraction. All files with the same name are byte-identical duplicates, I checked beforehand. The script first runs through the whole file to create a TOC so it will first look as if nothing is happening.
Code:
# SEGA Soccer Slam (Wii)
# WiiSound.dat - GCub extractor

# (c) 2022-01-20 by AlphaTwentyThree of Zenhax
# script for QuickBMS http://quickbms.aluigi.org

set SEARCH 0
for i = 1
   goto SEARCH
   FindLoc GO string "GCub" 0 ""
   if GO == ""
      break
   endif
   xmath OFFSET "GO - 0x70"
   goto OFFSET
   FindLoc OFFSET string "\x0\x0\x0\x4" 0 ""
   xmath NPOS "OFFSET 0x10"
   goto NPOS
   get NAME string
   putArray 0 i GO
   putArray 1 i NAME
   xmath SEARCH "GO 4"
next i
xmath FILES "i - 1"
for i = 1 <= FILES
   xmath k "i 1"
   getArray OFFSET 0 i
   getArray NAME 1 i
   if i != FILES
      getArray SIZE 0 k
   else
      get SIZE asize
   endif
   math SIZE -= OFFSET
   string NAME = ".gcub"
   if SIZE != 0
      log NAME OFFSET SIZE
   endif
next i
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.