Skip to content

ListenerAirAbsorption

Narta Xaymar Dirks edited this page Nov 27, 2026 · 1 revision

ListenerAirAbsorption BlitzLLVM

ListenerAirAbsorption:Void amount:Float32
Parameter Mode Type Default Description
amount In Float32 required How strong it is. 0 (the default) is off. At 1 the cutoff is 20 kHz at 100 meters, 2 kHz at 1 km and 200 Hz at 10 km; 2 halves those distances. Below 0 is a runtime error.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Lets distant sounds lose their high frequencies, as air does: every sound that comes from an entity gets a low-pass whose cutoff falls with its distance. This is a BlitzLLVM extension.

Differences

  • The cutoff is 2,000,000 Hz divided by the amount times the distance in meters (ListenerDistance sets the meters in a unit). It changes for channels that play already, too, and follows their distance like the volume does. The low-pass comes before the channel's own effects. GetListenerAirAbsorption tells the value.

Examples

; Thunder far away rumbles, close by it cracks.
ListenerAirAbsorption 1

Related Commands

CreateListener Blitz3D, GetListenerAirAbsorption BlitzLLVM, GetListenerDistance BlitzLLVM, ListenerDistance BlitzLLVM, ListenerDoppler BlitzLLVM, ListenerFalloff BlitzLLVM, ListenerRadius BlitzLLVM, ListenerRolloff BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally