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

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

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

A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels!

Properties

coneInnerAngle: number
coneOuterAngle: number
coneOuterGain: number
distanceModel: DistanceModelType
maxDistance: number
readonly
orientationX: AudioParam
readonly
orientationY: AudioParam
readonly
orientationZ: AudioParam
panningModel: PanningModelType
readonly
positionX: AudioParam
readonly
positionY: AudioParam
readonly
positionZ: AudioParam
refDistance: number
rolloffFactor: number

Methods

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