AudioListener Class
The position and the orientation of the listener of the spatialization of the PannerNode objects of a context (https://webaudio.github.io/web-audio-api/#AudioListener).
public sealed class AudioListenerProperties
| Name | Description |
|---|---|
| ForwardX | Gets the x coordinate of the forward direction. |
| ForwardY | Gets the y coordinate of the forward direction. |
| ForwardZ | Gets the z coordinate of the forward direction. |
| PositionX | Gets the x coordinate of the position. |
| PositionY | Gets the y coordinate of the position. |
| PositionZ | Gets the z coordinate of the position. |
| UpX | Gets the x coordinate of the up direction. |
| UpY | Gets the y coordinate of the up direction. |
| UpZ | Gets the z coordinate of the up direction. |
ForwardX
AudioListener.csGets the x coordinate of the forward direction.
public AudioParam ForwardX { get; }Property value
See also
ForwardY
AudioListener.csGets the y coordinate of the forward direction.
public AudioParam ForwardY { get; }Property value
See also
ForwardZ
AudioListener.csGets the z coordinate of the forward direction.
public AudioParam ForwardZ { get; }Property value
See also
PositionX
AudioListener.csPositionY
AudioListener.csPositionZ
AudioListener.csGets the x coordinate of the up direction.
public AudioParam UpX { get; }Gets the y coordinate of the up direction.
public AudioParam UpY { get; }Gets the z coordinate of the up direction.
public AudioParam UpZ { get; }Methods
| Name | Description |
|---|---|
| SetOrientation(float, float, float, float, float, float) | Sets the forward and up directions. |
| SetPosition(float, float, float) | Sets the position (the values of AudioListener.PositionX, AudioListener.PositionY and AudioListener.PositionZ). |
SetOrientation(float, float, float, float, float, float)
AudioListener.csSetPosition(float, float, float)
AudioListener.csSets the position (the values of AudioListener.PositionX, AudioListener.PositionY and AudioListener.PositionZ).