Posted: Sat Feb 04, 2017 9:42 am Post subject:
Compress Files on audio.bag
Hello, guys
Is there any way to compress .wav files on audio.bag?
I reassembled/ordered my original audio.bag (since the alphabet isn't in a right order + cleaning up my mod's sound files and place them to the audio01.bag) and it lose it's compress.
I compared with the original audio.bag with my reassembled/ordered original audio.bag, the Flags and the Chunk Size on XCC Audio Editor is different until I think that affects the non-compressing bag. Even my audio01.bag didn't compress too.
Any solution for this? _________________
Quote:
Humans were born for two things: to pray and be productive.
First of all, everyone can safely ignore IAmInnocent's sorry attempt at giving advice above, it's just inaccurate and irrelevant information.
Secondly, game primarily supports two types of wave file encoding, PCM and IMA ADPCM. You can distinguish between these in XCC Sound Editor via the Flags field, with the most common (and only ones in vanilla game) values being
The important thing to note here is that Extract functionality in XCC Sound Editor ALWAYS converts your files to 16-bit PCM regardless of their original format - which is what caused the issue you are having right now. Even more than that, it will not extract stereo-channel audio correctly at all, meaning that the several stereo-channel sounds that might have been in your old audio.bag are now corrupted, or more accurately, cut in half.
As for what's the difference between PCM and IMA ADPCM, latter takes more or less one quarter the space former does. It is a lossy encoding, but when the alternative is bloating your mod's size and choking the game's sound buffer with uncompressed audio, it's definitely the way to go.
TL;DR: Best approach is to just add your own additional/edited sound files in IMA ADPCM format in audio01.idx/bag (or loose if you insist but it is possible that idx/bag combination offers better performance) and leave vanilla game's bag untouched. _________________ QUICK_EDIT
IamInnocent, he wants compression and you advice pcm...
Ah since Starkku cleared this up, I will just add you can use about any hz here from 8000-88200khz if wish but filesize wise its optimal to stay with 22/44khz. Channels wise only stereo at highest is supported. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum