Author Topic: How do i compress sound files for Blockland  (Read 3177 times)

I most definitely don't. However I am speaking from experience when I say that you can lower the bitrate. I did it on some wavs I had and it cut the download times in half.

Any reduction in sample rate that noticeably reduces file download times will also noticeably destroy sound quality.  The highest frequency that a given sound file can reliably reproduce is half its sample rate - a file with a sample rate of 44.1k can't actually make a 44.1 kHz sine wave, only a 22.05 kHz sine wave.


However, nothing I can say will provide as clear a demonstration as this:
Here's the Blockland player death sound, at its in-game sample rate (22050 samples/second) and at half its in-game sample rate (11025 samples/second).

BL_Death_22050Hz.wav
BL_Death_11025Hz.wav

I answered your question in the General Modification Help board.

Here's the Blockland player death sound, at its in-game sample rate (22050 samples/second) and at half its in-game sample rate (11025 samples/second).

BL_Death_22050Hz.wav
BL_Death_11025Hz.wav

Wait what, these have the same file sizes? Is the reduction that small?


And yeah I totally exaggerated the 'cutting download times in half', but it did help (or at least people stopped complaining about it).

Wait what, these have the same file sizes? Is the reduction that small?

No, I had difficulty actually exporting them at the correct sample rates.  Eventually I got frustrated and just changed the sound sample rates.

Actually changing the file's sample rate would reduce the filesize by almost 50%, but not quite.

For a .wav file, at least. With a file format that has compression, the relationship would be more complicated.
« Last Edit: September 11, 2014, 05:19:52 AM by Xalos »