共用方式為


AVAudioEnvironmentDistanceAttenuationModel 列舉

定義

列舉 所使用的 AVAudioEnvironmentDistanceAttenuationParameters 衰減模型。

public enum AVAudioEnvironmentDistanceAttenuationModel
type AVAudioEnvironmentDistanceAttenuationModel = 
繼承
AVAudioEnvironmentDistanceAttenuationModel

欄位

Exponential 1

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

Inverse 2

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

Linear 3

取得 = (1 - RolloffFactor * (Distance - ReferenceDistance) / (MaximumDistance - ReferenceDistance) )

備註

Gain從 0 到 10 的圖表,包含: ReferenceDistance = 5RolloffFactor = 0.5MaximumDistance = 20

Exponential

Inverse

Linear

適用於