diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-22 13:36:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 13:36:07 +0200 |
commit | 886afa9b7692bc263cf96c03882760521b74b942 (patch) | |
tree | 4e3ddef8dd3367afe7ba7a525d26c068afd59bd0 /doc/classes | |
parent | 05dda9f87c9b71e92572120561ec09065b6dedec (diff) | |
parent | a1fc73e6d3e5aa04b2e93be074a2615a42fb7966 (diff) |
Merge pull request #26868 from NilsIrl/master
Add Attenuation Model "NO" for AudioStreamPlayer3D
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/AudioStreamPlayer3D.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/classes/AudioStreamPlayer3D.xml b/doc/classes/AudioStreamPlayer3D.xml index 6083372b72..2bd3ac1eaa 100644 --- a/doc/classes/AudioStreamPlayer3D.xml +++ b/doc/classes/AudioStreamPlayer3D.xml @@ -60,7 +60,7 @@ Amount how much the filter affects the loudness, in dB. </member> <member name="attenuation_model" type="int" setter="set_attenuation_model" getter="get_attenuation_model" enum="AudioStreamPlayer3D.AttenuationModel"> - Decides if audio should get quieter with distance linearly, quadratically or logarithmically. + Decides if audio should get quieter with distance linearly, quadratically, logarithmically, or not be affected by distance, effectively disabling attenuation. </member> <member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled"> If [code]true[/code], audio plays when added to scene tree. Default value: [code]false[/code]. @@ -124,6 +124,9 @@ <constant name="ATTENUATION_LOGARITHMIC" value="2" enum="AttenuationModel"> Logarithmic dampening of loudness according to distance. </constant> + <constant name="ATTENUATION_DISABLED" value="3" enum="AttenuationModel"> + No dampening of loudness according to distance. + </constant> <constant name="OUT_OF_RANGE_MIX" value="0" enum="OutOfRangeMode"> Mix this audio in, even when it's out of range. </constant> |