Manual     Reference     Scripting  
  
Scripting > Runtime Classes > AudioSource Switch to Component   

AudioSource.rolloffFactor  

var rolloffFactor : float

Description

How fast the sound fades.

The higher the value, the closer the Listener has to be before hearing the sound.

audio.rolloffFactor = 0.1;

See Also: minVolume, maxVolume.