Enum
Enum.DistanceAttenuationMode
Determines how an AudioEmitter attenuates (fades out) as the distance between the AudioEmitter and an interacting AudioListener increases.
| Item | Value | Summary |
|---|---|---|
| Enum.DistanceAttenuationMode.Custom | 0 | Uses the developer-supplied DistanceAttenuation curve for gain rolloff. |
| Enum.DistanceAttenuationMode.InverseTapered | 1 | Volume attenuates according to a hybrid model which follows the DistanceAttenuationMode.Inverse model when close to the lower bound of AudioEmitter.DistanceAttenuationBounds and the DistanceAttenuatio |
| Enum.DistanceAttenuationMode.Linear | 2 | Volume attenuates between the bounds of AudioEmitter.DistanceAttenuationBounds with a linear relationship. This is done by computing (maxDistance - distance) / (maxDistance - minDistance), where dista |
| Enum.DistanceAttenuationMode.LinearSquared | 3 | Volume attenuates between the bounds of AudioEmitter.DistanceAttenuationBounds with a linear-squared relationship. This is done by squaring the formula used to determine the volume when using Distance |
| Enum.DistanceAttenuationMode.Inverse | 4 | Volume attenuates from the lower bound of AudioEmitter.DistanceAttenuationBounds in an inverse manner, mirroring how sounds attenuate in the real world. This is done by computing (minDistance/distance |
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.