C# Class HoloToolkit.Unity.AudioOccluder

Class that implements IAudioInfluencer to provide an occlusion effect.
Inheritance: UnityEngine.MonoBehaviour, IAudioInfluencer
显示文件 Open project: Microsoft/HoloToolkit-Unity

Public Methods

Method Description
ApplyEffect ( GameObject emitter, AudioSource audioSource ) : void

Applies the audio effect.

RemoveEffect ( GameObject emitter, AudioSource audioSource ) : void

Removes the previously applied audio effect.

Private Methods

Method Description
Update ( ) : void

Method Details

ApplyEffect() public method

Applies the audio effect.
public ApplyEffect ( GameObject emitter, AudioSource audioSource ) : void
emitter UnityEngine.GameObject The GameObject on which the effect is to be applied.
audioSource UnityEngine.AudioSource The AudioSource that will be impacted by the effect.
return void

RemoveEffect() public method

Removes the previously applied audio effect.
public RemoveEffect ( GameObject emitter, AudioSource audioSource ) : void
emitter UnityEngine.GameObject The GameObject from which the effect is to be removed.
audioSource UnityEngine.AudioSource The AudioSource that will be impacted by the effect.
return void