READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

RE6 Switch Audio Format

Get help on any and all audio formats, or chip in and help others!
Post Reply
DeathChaos
ultra-n00b
Posts: 6
Joined: Wed Nov 01, 2017 7:27 am

RE6 Switch Audio Format

Post by DeathChaos » Fri Nov 01, 2019 2:22 pm

Hello.

I seem to be unable to figure out what audio format is being used for the Switch version of RE6, I figured it'd be common formats like bfwav/bfstm or something like libopus, but I seem to be unable to figure out what they are, and the file header doesnt seem to have any identifiable magic either.

Here are some sample arc files that contain voices, arc format seems to be same as PC version

User avatar
DKDave
veteran
Posts: 108
Joined: Mon May 06, 2019 6:07 pm
Has thanked: 1 time
Been thanked: 35 times

Re: RE6 Switch Audio Format

Post by DKDave » Sun Nov 03, 2019 1:09 am

Once the files in the archive are decompressed (zlib compression), the audio is in GameCube DSP 4-bit ADPCM format. The files all seem to be mono, so you have the coefficients at offset 0x18 and the audio data at 0x80. The sample rate is at 0x64. The coefficient type is Normal (Little Endian).

Hope that helps!
"Each person is born with their fate written into their own genetic code. It's unchangeable, immutable. But that's not all there is to life." - Dr. Naomi Hunter

DeathChaos
ultra-n00b
Posts: 6
Joined: Wed Nov 01, 2017 7:27 am

Re: RE6 Switch Audio Format

Post by DeathChaos » Mon Nov 04, 2019 9:55 pm

This does indeed help, was able to extract/convert audio, thanks for the info!

Edit: When reading them with tools such as vgmstream on foobar the pitch seems accelerated, and tools such as VGAudio seem to have some problems with it, any idea why this might be?

User avatar
DKDave
veteran
Posts: 108
Joined: Mon May 06, 2019 6:07 pm
Has thanked: 1 time
Been thanked: 35 times

Re: RE6 Switch Audio Format

Post by DKDave » Tue Nov 05, 2019 1:09 am

It seems the sample rate of 48,000 in the files is too fast. 32,000 should probably be the right value for all of the sounds. There are some values in the file table in the .arc file - seems to be 0x597BC479 for most files. This info might be some flags about the audio data, including the correct sample rate.

I think VGAudio might have some issues as it doesn't seem like the files are in a known format, i.e. they don't have the same header format as normal DSP files.
"Each person is born with their fate written into their own genetic code. It's unchangeable, immutable. But that's not all there is to life." - Dr. Naomi Hunter

Post Reply