Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.AudioListener
import { type dom } from "https://deno.land/x/evt@v2.3.1/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