C# 클래스 HoloToolkit.Unity.SpatialSoundSettings

The SpatialSoundSettings class provides a set of methods that simplify making modifications to Microsoft Spatial Sound Spatializer parameters.
파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity 1 사용 예제들

공개 메소드들

메소드 설명
SetMaxGain ( AudioSource audioSource, float gain ) : void

Sets the Spatial Sound maximum gain.

SetMinGain ( AudioSource audioSource, float gain ) : void

Sets the Spatial Sound minimum gain.

SetRoomSize ( AudioSource audioSource, SpatialSoundRoomSizes room ) : void

Sets the Spatial Sound room size.

SetUnityGainDistance ( AudioSource audioSource, float distance ) : void

Sets the Spatial Sound unity gain distance.

비공개 메소드들

메소드 설명
SetParameter ( AudioSource audioSource, SpatialSoundParameters param, float value ) : void

Sets a Spatial Sound parameter on an AudioSource.

메소드 상세

SetMaxGain() 공개 정적인 메소드

Sets the Spatial Sound maximum gain.
public static SetMaxGain ( AudioSource audioSource, float gain ) : void
audioSource UnityEngine.AudioSource The AudioSource on which the maximum gain will be set.
gain float
리턴 void

SetMinGain() 공개 정적인 메소드

Sets the Spatial Sound minimum gain.
public static SetMinGain ( AudioSource audioSource, float gain ) : void
audioSource UnityEngine.AudioSource The AudioSource on which the minimum gain will be set.
gain float
리턴 void

SetRoomSize() 공개 정적인 메소드

Sets the Spatial Sound room size.
public static SetRoomSize ( AudioSource audioSource, SpatialSoundRoomSizes room ) : void
audioSource UnityEngine.AudioSource The AudioSource on which the room size will be set.
room SpatialSoundRoomSizes The desired room size.
리턴 void

SetUnityGainDistance() 공개 정적인 메소드

Sets the Spatial Sound unity gain distance.
public static SetUnityGainDistance ( AudioSource audioSource, float distance ) : void
audioSource UnityEngine.AudioSource The AudioSource on which the unity gain distance will be set.
distance float
리턴 void