AVAudioEnvironmentDistanceAttenuationModel Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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