Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AudioListener

The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.

interface AudioListener {
readonly forwardX: AudioParam;
readonly forwardY: AudioParam;
readonly forwardZ: AudioParam;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
readonly upX: AudioParam;
readonly upY: AudioParam;
readonly upZ: AudioParam;
setOrientation(
x: number,
y: number,
z: number,
xUp: number,
yUp: number,
zUp: number,
): void;
setPosition(
x: number,
y: number,
z: number,
): void;
}
var AudioListener: {
prototype: AudioListener;
new (): AudioListener;
}
;

§Properties

§
readonly forwardX: AudioParam
[src]
§
readonly forwardY: AudioParam
[src]
§
readonly forwardZ: AudioParam
[src]
§
readonly positionX: AudioParam
[src]
§
readonly positionY: AudioParam
[src]
§
readonly positionZ: AudioParam
[src]
§
readonly upX: AudioParam
[src]
§
readonly upY: AudioParam
[src]
§
readonly upZ: AudioParam
[src]

§Methods

§
setOrientation(
x: number,
y: number,
z: number,
xUp: number,
yUp: number,
zUp: number,
): void
[src]
§
setPosition(
x: number,
y: number,
z: number,
): void
[src]