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

PannerNode

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!

interface PannerNode extends AudioNode {
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;
setOrientation(
x: number,
y: number,
z: number,
): void;
setPosition(
x: number,
y: number,
z: number,
): void;
}
var PannerNode: {
prototype: PannerNode;
new (context: BaseAudioContext, options?: PannerOptions): PannerNode;
}
;

§Extends

§Properties

§
coneInnerAngle: number
[src]
§
coneOuterAngle: number
[src]
§
coneOuterGain: number
[src]
§
maxDistance: number
[src]
§
readonly orientationX: AudioParam
[src]
§
readonly orientationY: AudioParam
[src]
§
readonly orientationZ: AudioParam
[src]
§
readonly positionX: AudioParam
[src]
§
readonly positionY: AudioParam
[src]
§
readonly positionZ: AudioParam
[src]
§
refDistance: number
[src]
§
rolloffFactor: number
[src]

§Methods

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