Scurvy Lobster

Hi! I need help on compressing audio files.

Our game music is making our XNA game quite huge. How do you make XNA compress the sound and music for the game when you deploy



Re: XNA Game Studio Express Wave bank file is huge

Derek Nedelman

Unfortunately, there is currently no way to use compressed audio files.





Re: XNA Game Studio Express Wave bank file is huge

WilderLand

That isn't entirely correct. You can compress the size of WAV files in XACT, it isn't as good as MP3 format, but it can pull down the size by 75%.

Right click on Compression Presets and to add a compression preset. You can change the compression by changing the "Samples per Block". Play with it, and you should find a reasonable comprise. You can add multiple presets if you want higher quality for some sounds and can get by with lower quality for others.

Then when you add each sound sample to your wave bank, in the Wave Bank Properties box in the lower left hand side of the screen use the preset in the "Compression Preset" drop down and select the preset(s) you created in the first step I mentioned above.





Re: XNA Game Studio Express Wave bank file is huge

dagfari

To help make your game music smaller;

You need a tool that can resample WAV files such as 'Adobe Audition'

1) Convert your music from stereo to mono
2) Resample from 44100 to 22050
3) Use the XACT compression method as described by WilderLand

This will get you 16x compression





Re: XNA Game Studio Express Wave bank file is huge

Derek Nedelman

WilderLand wrote:

That isn't entirely correct. You can compress the size of WAV files in XACT, it isn't as good as MP3 format, but it can pull down the size by 75%.



Oh wow, I never noticed that. Thanks for the info.





Re: XNA Game Studio Express Wave bank file is huge

Scurvy Lobster

Thanks to all of you!