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

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

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

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