Game dev
Saved & recent

Spatial audio

Also called: 3D sound

Related terms: listener, attenuation, panning, HRTF, reverb

Sounds placed at positions in the world and heard from a listener, usually the camera. The engine sets the volume from the distance and the left and right balance from the direction.

Extras add realism: occlusion muffles a sound behind a wall, the Doppler effect shifts the pitch of fast movers, and HRTF filtering gives a convincing sense of above and behind on headphones.

Further reading
Godot: Audio streams
L 0.11 R 0.39 channel gain listener source right-biased output
The dashed circle bounds the full-volume region in this example. Outside it, distance attenuates both channels. The source’s bearing gives the right channel more gain.

View in the full Game dev collection