Source:setFalloff

Sets parameters that control how the volume of the Source falls of with distance.

Only mono sources support positional falloff. Using this function on a stereo Source will cause an error.

Source:setFalloff(reference, max, rolloff)

Arguments

NameTypeDescription
referencenumberThe distance at which the volume will start to decrease.
maxnumberThe distance at which the Source will be its quietest.
rolloffnumberHow quickly the sound falls off between the reference and max distances (1.0 is the default).

Returns

Nothing

See also