Hi all,
I am interested to hear your thoughts on lossless audio compression for audio games. For those of you who do not know the difference, let me explain briefly.
Uncompressed audio is usually stored as .wav files; this is the Microsoft format that is most commonly used to store raw audio data also known as PCM. These files are rather large. For CD quality stereo audio, one minute of sound takes about 10 MB of storage space.
Most games will use some sort of lossy compression such as Vorbis, Opus, or MP3. When you use lossy compression, parts of the audio that the encoder expects that most humans will not hear, are removed in a clever way to save space. So when you play back a .mp3 or .ogg file, you will be listening to a version of the original Wave file with reduced audio quality. This reduction in quality is irreversible.
There are also so called lossless audio compression schemes. The one I like the best is called FLAC. When you compress a Wave file into a lossless format like FLAC, the .flac file is smaller than the .wav file but not nearly as much as it would have been had you used lossy compression. However, when you play a FLAC file, you will be listening to what amounts to a perfect copy of the original Wave file. There is no reduction in quality whatsoever.
If you use a high bitrate for a lossy format such as Vorbis, most people will not notice a difference. But there are audiophiles like myself who do enjoy the idea of having lossless audio, even if it takes more space on disk.
Here are some approximate figures for a small set of audio files that I tested.
Wave: 50.5 MB
Vorbis at quality 6: 7.6 MB
FLAC: 28.5 MB
What do you think? Would you like to see a game with lossless audio, or do you consider the space savings to be more important than the audio quality?
To be clear, this is for PC games. For mobile games, I think lossy compression is a must for now.
Kind regards,
Philip Bennefall