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.

QP: Shooting Dangerous - strange audio codec

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Mon Jan 19, 2015 5:20 pm (2752)


Hi there!
I wanted to look at the music from the above game and stumbled across an audio codec that I've never seen before. The byte distribution reminds of uncompressed PCM but the structure is completely different. There's one big file without TOC but I'd like to play around with a header if available.
Here are the first 16mb of the archive: http://*USE_ANOTHER_FILEHOSTING*/0710fe8 ... m.dat_16mb
Has anybody seen this codec before? Is it maybe some kind of obfuscated PCM?
Any help is appreciated!
  • Author
  • Localization

aluigi, posted Mon Jan 19, 2015 11:51 pm (2767)


Code:
filexor "\x8e\x07\xfa\xe9\x8c\xdf\x8e\xf1\x83\x1e\xe1\xbf"
math OFFSET = 0x1c
get SIZE asize
math SIZE -= OFFSET
get NAME basename
string NAME = ".wav"
log NAME OFFSET SIZE
  • Author
  • Localization

AlphaTwentyThree, posted Mon Jan 19, 2015 11:56 pm (2768)


damn, such an easy solution... THANKS LUIGI! :)
  • Author
  • Localization

AlphaTwentyThree, posted Tue Jan 20, 2015 12:20 am (2773)


Well uhm... I'm having problems with writing a correct script for extraction of the archive... Could you eventually take a quick look for a short script? That would be great! Here's the complete archive: http://*USE_ANOTHER_FILEHOSTING*/5c714ff ... 43/bgm.dat
  • Author
  • Localization

AlphaTwentyThree, posted Tue Jan 20, 2015 1:10 am (2779)


You're my hero, Luigi! ;)
  • Author
  • Localization

aluigi, posted Wed Feb 03, 2016 4:11 pm (11191)


I have updated the script to version 0.2 but there are no good news.
Those files that look "strange" are compressed but I don't know what algorithm or customization it is.
So now the files have a correct filename (they were wrong before) and are saved "as-is" if they are compressed.

My guess is that they use a modified lzss, maybe just some parameters.
  • Author
  • Localization

AlphaTwentyThree, posted Wed Feb 03, 2016 7:53 pm (11196)


Interesting news indeed. Maybe something that could be implemented when somebody has the nerve to fiddle around with the parameters.
Thanks for the update! :)
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.