Skip to content

DistanceAttenuationMode

Not yet Enum

Determines how an AudioEmitter attenuates (fades out) as the distance between the AudioEmitter and an interacting AudioListener increases.

Not implemented in Nova

This enum is missing from Nova. Scripts that reference it will fail.

Description

Determines how an AudioEmitter attenuates (fades out) as the distance between the AudioEmitter and an interacting AudioListener increases. Most values refer to a preset rolloff curve that the AudioEmitter will apply over the range given by DistanceAttenuationBounds. When set to DistanceAttenuationMode.Custom, the emitter instead uses a developer-supplied curve given by AudioEmitter.SetDistanceAttenuation().

Items

Item Value Status Notes
Custom 0 Not yet Uses the developer-supplied DistanceAttenuation curve for gain rolloff.
InverseTapered 1 Not yet Volume attenuates according to a hybrid model which follows the DistanceAttenuationMode.Inverse model when close to the lower bound of [AudioEmitter.DistanceAtte…
Linear 2 Not yet Volume attenuates between the bounds of AudioEmitter.DistanceAttenuationBounds with a linear relationship. This is done by computing (`maxDista…
LinearSquared 3 Not yet Volume attenuates between the bounds of AudioEmitter.DistanceAttenuationBounds with a linear-squared relationship. This is done by squaring the…
Inverse 4 Not yet Volume attenuates from the lower bound of AudioEmitter.DistanceAttenuationBounds in an inverse manner, mirroring how sounds attenuate in the re…

Roblox reference: DistanceAttenuationMode