Skip to content

ListenerRolloff

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

ListenerRolloff BlitzLLVM

ListenerRolloff:Void value:Float32, fade_ms:Int32=0
Parameter Mode Type Default Description
value In Float32 required 0 means sounds do not get quieter with distance, 1 is the normal rate and above that makes them fade faster. Below 0 is a runtime error.
fade_ms In Int32 0 How many milliseconds it takes to get to the new value. 0 (the default) changes it at once. Below 0 is a runtime error.

Description

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

Changes how fast 3D sounds get quiet with distance, which CreateListener sets first. The change can glide over a time, so that walking from a cave into the open does not change every sound at once. This is a BlitzLLVM extension.

Differences

  • It works without a listener too, for the one at the origin that is there until CreateListener is called. A new value while one glides starts from where it has got to. GetListenerRolloff tells the value.

Examples

; Out of the cave, sounds carry further: half the rolloff over two seconds.
ListenerRolloff 0.5, 2000

Related Commands

CreateListener Blitz3D, GetListenerDistance BlitzLLVM, GetListenerDoppler BlitzLLVM, GetListenerRolloff BlitzLLVM, ListenerDistance BlitzLLVM, ListenerDoppler BlitzLLVM, ListenerFalloff BlitzLLVM, ListenerRadius BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally