DE EN FR ES IT

Engine & tech

Audio ducking

Also: ducking, sidechain ducking

Ducking is the automatic lowering of one audio channel, usually music, while a more important channel such as a voice is playing. Afterwards the music returns to its normal level.

Background

The term comes from radio and studio work, where a presenter's voice pushes the music down through a sidechain compressor. In games the audio engine usually handles it, triggered by whether a voice line is currently playing.

Good ducking is barely noticeable. The music does not go silent; it steps back to make room for the voice. Not every channel should drop with it, though: an ambience bed of rain or traffic carries the space and can keep going.

Common mistakes are ducking too hard, so the music pumps with every line, abrupt jumps instead of short fades, and ducking that still kicks in when voices are switched off, so the music gets quieter for no reason.

How we do it

The Wurzelwerk engine lowers music to 30 percent while a voice is speaking; in the code that is DUCK = 0.3. Music and voice can be toggled and adjusted separately in the sound menu. The optional ambience bed, ambience, has its own slider and is deliberately not ducked; it crossfades between scenes and runs as a gapless loop.

With the optional separate effects channel, sound effects and UI sounds no longer depend on the voice slider, so clicks do not go silent when someone turns voices off. Games that do not set these options sound exactly as before.

Related terms