Page 1 of 1

The Crew 2 corrupted WAV headers

Posted: Sat Nov 10, 2018 9:08 pm
by needsb
I managed to dump all WAV files from sounds.dat using Winhex but the WAV file can't be opened. I open it in 010 editor and it automatically highlight the bytes, no errors. The file does seems to have artist info in it but Windows can't read it. I guess the header is invalid. The header modification is very known of DLL of Android unity games though...
I can't figured it out what to do with the WAV header as i'm not familar with audio format.
Anyone can help me recover the WAV header?
Sample: https://usersdownload.com/bvj4cldqlw8r.html

Re: The Crew 2 corrupted WAV headers

Posted: Sun Dec 09, 2018 3:52 pm
by needsb
Anyone are interested?

Re: The Crew 2 corrupted WAV headers

Posted: Mon Dec 10, 2018 1:05 pm
by Delvau
needsb wrote:I managed to dump all WAV files from sounds.dat using Winhex but the WAV file can't be opened. I open it in 010 editor and it automatically highlight the bytes, no errors. The file does seems to have artist info in it but Windows can't read it. I guess the header is invalid. The header modification is very known of DLL of Android unity games though...
I can't figured it out what to do with the WAV header as i'm not familar with audio format.
Anyone can help me recover the WAV header?
Sample: https://usersdownload.com/bvj4cldqlw8r.html

I'm very interested, thanks for sharing!

Re: The Crew 2 corrupted WAV headers

Posted: Tue Dec 11, 2018 6:09 pm
by brendan19
vgmstream can playback/convert these files

They are not PCM WAV files like you think they are.

They are Audiokinetic Wwise files because that is the audio middleware that was used on The Crew 2 for the game.

Audiokinetic Wwise audio files use a RIFF header similar to the one used in a standard PCM WAV file but are based on the WAVEFORMATEX style header.

Additionally, they're compressed/encoded with vorbis which also makes them different to a standard PCM WAV file.


tl;dr
Download vgmstream and rename the file extension from .wav to .wem and vgmstream will playback/convert them just fine :)

Re: The Crew 2 corrupted WAV headers

Posted: Sun Dec 30, 2018 10:29 pm
by needsb
Thanks very much. vgmstream did the job. Is there a way to convert multiple files instead just once?

EDIT: Found the batch script: https://www.hcs64.com/mboard/forum.php?showthread=48467