Type:AudioRolloffMode: Difference between revisions

From Resonite Wiki
add new enum values
Correct LogarithmicClamped description
 
Line 12: Line 12:
|-
|-
|LogarithmicClamped
|LogarithmicClamped
|As you move away, the audio will roll off with a Logarithmic Curve, once you hit the max distance it will hard cut to silence.  
|As you move away, the audio will roll off with a Logarithmic Curve, once you reach max distance the audio will stop attenuating but not cut out (i.e. the attenuation is clamped to MaxDistance).  
|1
|1
|-
|-

Latest revision as of 04:29, 9 August 2025

AudioRolloffMode is an Enum used in many audio processing components (such as AudioOutput) and ProtoFlux nodes and refers to how the audio's volume decreases as you move away from it spatially.

Possible Values

Value Description Numeric Value
LogarithmicInfinite As you move away, the audio will roll off with a Logarithmic Curve, never reaches full silence. 0
LogarithmicClamped As you move away, the audio will roll off with a Logarithmic Curve, once you reach max distance the audio will stop attenuating but not cut out (i.e. the attenuation is clamped to MaxDistance). 1
LogarithmicFadeOff As you move away, the audio will roll off with a Logarithmic Curve, once you reach the max desired distance it will fade out to silence linearly. 2
Linear As you move away, the audio will roll off with a Linear Curve. 3