Author Topic: Help unpacking sound archives? (From NFSMW 2005)  (Read 2085 times)

0 Members and 1 Guest are viewing this topic.

Offline V12-POWER

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
Help unpacking sound archives? (From NFSMW 2005)
« on: August 02, 2014, 03:35:41 am »
I made this thread because my friend who was helping me is not in the scene anymore and has no interest in cracking files again.


As the title suggests cracking a sound file format from Need for Speed Most Wanted 2005. Well, there are 2 formats I'd like to get hands on but now I'll focus on the most important, they're the .gin files.
This game uses loopless sound system, so it's only one sample for on-throttle and off-throttle samples.
The .gin files are organized in blocks of 19 bytes, my friend told me that the codec used could be a version of the EA ADPCM/XAS codec.


http://i.imgur.com/ZCGLYzJ.jpg


Another thing is that the structure of this file is pretty simple, it consists of 2 blocks of data and the sample itself.
The first block of data is an array of ints, each int specifies the pitch/frequency of the RPM sample once the car reaches a certain RPM. Then the second block, which has a VERY similar byte pattern, it's effects are unknown.


http://i37.photobucket.com/albums/e57/teamlotus3/DFSDGSFG_zps66da5326.jpg


shows the second block and part of the sample, that diagonal pattern is the same in the 2 blocks of data.
Now what I need to find out is the size of all the section before the audio data. He told me to modify some ints at 16-24 (decimal) but the truth is that I don't know how to "spot" and I have no clue if im right or not while guessing file size.


Here are some files from the game if you want to take a look


https://mega.co.nz/#!GhwwmQwK!Vcp-S_S0MgOWUE9NNpL_BWEehsDGtzIUqnADv1TrOWE