Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.AudioListener

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.AudioListener
import { type dom } from "https://deno.land/x/evt@v2.4.22/lib/index.ts";
const { AudioListener } = dom;

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.

Properties

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

Methods

deprecated
setOrientation(
x: number,
y: number,
z: number,
xUp: number,
yUp: number,
zUp: number,
): void
deprecated
setPosition(
x: number,
y: number,
z: number,
): void