Compression

I’m going to help you understand what compression actually is and why it’s on almost every sound you hear in a modern game or song. Most people think it just makes things "louder," but it’s actually about control and impact.

To keep things simple, I’ll use Fruity Limiter (in Comp mode) as the example. It has a visualizer that shows you exactly how the "logic" is affecting your wave.

fruitylimiter_comp.png

What is Compression?

Think of a compressor as an automatic volume knob.

Imagine a voice actor who whispers one second and screams the next. If you turn the volume up to hear the whisper, the scream will blow out the player's speakers. If you turn it down for the scream, you can't hear the whisper. A compressor automatically "squashes" the loud parts so you can turn the whole thing up without clipping.

I describe compression as "The Anchor." It keeps the sound from floating away or jumping out too far; it keeps it locked in place.


The Four Ingredients (The "Logic" of the Squash)

On most compressors, you’ll see these four main knobs. If you think like a programmer, these are just a conditional statement:


Why we add it to almost every sound

If you don't compress your audio, your mix will feel "thin" or "stabby." We use it for three main reasons:

  1. The "P" and "S" Problem (Transients): It tames the harsh "hits" in the air—like the "P" in a voiceover or the initial slam of a car door.
  2. Consistency: It ensures that every gunshot or footstep feels like it has the same "weight," even if the original recordings vary.
  3. Headroom: By flattening the "peaks" (the spikes), you create more room to turn the overall game volume up without hitting 0dB (Clipping).

Compression vs. Limiting (The Brick Wall)

People get these confused, but here is the gap:


Engine-Specific Tips (Game Dev)

👾 Unreal Engine (Submixes)

In Unreal, don't put a compressor on every single SoundWave—that’s an overhead nightmare for the CPU.

🎮 Unity (Audio Mixer)

Unity handles this through the Audio Mixer window.


The "Visual" Check

Think of your sound wave like a piece of paper:

Pro-Tip: The "Over-Compressed" Trap If you compress a sound too much (High Ratio, Low Threshold), you lose all the "life." It sounds "squashed," "dead," or "dull." If your sound feels like it lost its "hit," increase your Attack time to let the initial "crack" through!


Summary Table: Compression Settings

Sound Type Attack Ratio Why?
Vocals Fast 2:1 - 4:1 Keeps the voice steady and clear.
Drums/Guns Slow 4:1 - 8:1 Lets the "crack" through but keeps the "slam" heavy.
Master Mix Very Slow 1.5:1 - 2:1 Just "glues" everything together without changing the sound.