Condividi tramite


AVAudioEnvironmentDistanceAttenuationModel Enumerazione

Definizione

Enumera i modelli di attenuazione usati da AVAudioEnvironmentDistanceAttenuationParameters.

public enum AVAudioEnvironmentDistanceAttenuationModel
type AVAudioEnvironmentDistanceAttenuationModel = 
Ereditarietà
AVAudioEnvironmentDistanceAttenuationModel

Campi

Exponential 1

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

Inverse 2

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

Linear 3

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

Commenti

Grafico di Gain as Distance è compreso tra 0 e 10 con: ReferenceDistance = 5, RolloffFactor = 0.5e MaximumDistance = 20

Exponential

Inverse

Linear

Si applica a