A class that specifies the attenuation distance, the gradual loss in audio intensity, and other characteristics.


class AVAudioEnvironmentDistanceAttenuationParameters : NSObject


Getting and Setting the Attenuation Model

var distanceAttenuationModel: AVAudioEnvironmentDistanceAttenuationModel

The distance attenuation model describing the drop-off in gain as the source moves away from the listener.

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.

var rolloffFactor: Float

A factor that determines the attenuation curve.


enum AVAudioEnvironmentDistanceAttenuationModel

Types of distance attenuation models.


Inherits From

Conforms To

See Also

3D Environment Options

class AVAudioEnvironmentNode

A mixer node that simulates a 3D audio environment.

class AVAudioEnvironmentReverbParameters

A class that encapsulates the parameters that you use to control the reverb of the environment node class.

protocol AVAudio3DMixing

A protocol defining 3D mixing properties.

struct AVAudio3DAngularOrientation

A structure representing the angular orientation of the listener in 3D space.

struct AVAudio3DPoint

A structure representing a point in 3D space.

struct AVAudio3DVectorOrientation

A structure representing two orthogonal vectors that describe the orientation of the listener in 3D space.

typealias AVAudio3DVector

A structure representing a vector in 3D space.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software