SoundSource.attenuation

The attenuation factor of the sound.

The attenuation is a multiplicative factor which makes the sound more or less loud according to its distance from the listener. An attenuation of 0 will produce a non-attenuated sound, i.e. its volume will always be the same whether it is heard from near or from far.

On the other hand, an attenuation value such as 100 will make the sound fade out very quickly as it gets further from the listener. The default value of the attenuation is 1.

  1. float attenuation [@property setter]
  2. float attenuation [@property getter]
    interface SoundSource
    @property
    float
    attenuation
    (
    )

Meta