Instance Property

referenceDistance

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

Declaration

var referenceDistance: Float { get set }

Discussion

The default value is 1.0 meter.

This property is relevant for the 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 rolloffFactor: Float

A factor that determines the attenuation curve.