Instance Property


A factor that determines the attenuation curve.


var rolloffFactor: Float { get set }


A higher value results in a steeper attenuation curve. The default value is 1.0. The value must be greater than 0.0.

This property is relevant for the AVAudioEnvironmentDistanceAttenuationModel.exponential, AVAudioEnvironmentDistanceAttenuationModel.inverse, and AVAudioEnvironmentDistanceAttenuationModel.linear attenuation models.

See Also

Getting and Setting the Attenuation Values

var maximumDistance: Float

The distance, in meters, beyond which no further attenuation is applied.

var referenceDistance: Float

The minimum distance, in meters, at which attenuation is applied.