AudioListener3D
Overrides the location sounds are heard from.
Overrides the location sounds are heard from.
Once added to the scene tree and enabled using AudioListener3D.MakeCurrent, this node will override the location sounds are heard from. This can be used to listen from a location different from the Camera3D.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
AudioListener3DConstructor
public AudioListener3D();Properties1
DopplerTrackingProperty
public AudioListener3D.DopplerTrackingEnum DopplerTracking { get; set; }If not AudioListener3D.DopplerTrackingEnum.Disabled, this listener will simulate the Doppler effect for objects changed in particular _process methods.
Note: The Doppler effect will only be heard on AudioStreamPlayer3Ds if AudioStreamPlayer3D.DopplerTracking is not set to AudioStreamPlayer3D.DopplerTrackingEnum.Disabled.
Methods6
ClearCurrentvoid
public void ClearCurrent();Disables the listener to use the current camera's listener instead.
GetDopplerTrackingAudioListener3D.DopplerTrackingEnum
public AudioListener3D.DopplerTrackingEnum GetDopplerTracking();AudioListener3D.DopplerTrackingEnumGetListenerTransformTransform3D
public Transform3D GetListenerTransform();Returns the listener's global orthonormalized Transform3D.
Transform3DIsCurrentbool
public bool IsCurrent();Returns true if the listener was made current using AudioListener3D.MakeCurrent, false otherwise.
Note: There may be more than one AudioListener3D marked as "current" in the scene tree, but only the one that was made current last will be used.
boolMakeCurrentvoid
public void MakeCurrent();Enables the listener. This will override the current camera's listener.
SetDopplerTrackingvoid
public void SetDopplerTracking(AudioListener3D.DopplerTrackingEnum mode);| Name | Type | Default |
|---|---|---|
mode | AudioListener3D.DopplerTrackingEnum | — |
AudioListener3D.DopplerTrackingEnum
| Value | Description |
|---|---|
Disabled = 0 | Disables Doppler effect simulation (default). |
IdleStep = 1 | Simulate Doppler effect by tracking positions of objects that are changed in |
PhysicsStep = 2 | Simulate Doppler effect by tracking positions of objects that are changed in |