Düzenle

Aracılığıyla paylaş


AVAudioEnvironmentDistanceAttenuationModel Enum

Definition

Enumerates attenuation models used by AVAudioEnvironmentDistanceAttenuationParameters.

public enum AVAudioEnvironmentDistanceAttenuationModel
type AVAudioEnvironmentDistanceAttenuationModel = 
Inheritance
AVAudioEnvironmentDistanceAttenuationModel

Fields

Name Value Description
Exponential 1

Gain = (Distance / ReferenceDistance)^(-RolloffFactor)

Inverse 2

Gain = ReferenceDistance / (ReferenceDistance + RolloffFactor * (Distance - ReferenceDistance))

Linear 3

Gain = (1 - RolloffFactor * (Distance - ReferenceDistance) / (MaximumDistance - ReferenceDistance))

Remarks

Graph of Gain as Distance ranges from 0 to 10 with: ReferenceDistance = 5, RolloffFactor = 0.5, and MaximumDistance = 20

Exponential

Inverse

Linear

Applies to