Interface: PannerNode
Defined in: types/desktop-engine.d.ts:5021
Positions a source in 3D relative to context.listener; mixes to stereo like StereoPannerNode
Extends
Properties
channelCount
channelCount: number;Defined in: types/desktop-engine.d.ts:4874
1 to 32
Inherited from
channelCountMode
channelCountMode: ChannelCountMode;Defined in: types/desktop-engine.d.ts:4875
Inherited from
channelInterpretation
channelInterpretation: ChannelInterpretation;Defined in: types/desktop-engine.d.ts:4876
Inherited from
AudioNode.channelInterpretation
coneInnerAngle
coneInnerAngle: number;Defined in: types/desktop-engine.d.ts:5034
coneOuterAngle
coneOuterAngle: number;Defined in: types/desktop-engine.d.ts:5035
coneOuterGain
coneOuterGain: number;Defined in: types/desktop-engine.d.ts:5037
0 to 1
context
readonly context: BaseAudioContext;Defined in: types/desktop-engine.d.ts:4870
Inherited from
distanceModel
distanceModel: DistanceModelType;Defined in: types/desktop-engine.d.ts:5024
maxDistance
maxDistance: number;Defined in: types/desktop-engine.d.ts:5032
numberOfInputs
readonly numberOfInputs: number;Defined in: types/desktop-engine.d.ts:4871
Inherited from
numberOfOutputs
readonly numberOfOutputs: number;Defined in: types/desktop-engine.d.ts:4872
Inherited from
orientationX
readonly orientationX: AudioParam;Defined in: types/desktop-engine.d.ts:5028
orientationY
readonly orientationY: AudioParam;Defined in: types/desktop-engine.d.ts:5029
orientationZ
readonly orientationZ: AudioParam;Defined in: types/desktop-engine.d.ts:5030
panningModel
panningModel: PanningModelType;Defined in: types/desktop-engine.d.ts:5023
"HRTF" pans like "equalpower"
positionX
readonly positionX: AudioParam;Defined in: types/desktop-engine.d.ts:5025
positionY
readonly positionY: AudioParam;Defined in: types/desktop-engine.d.ts:5026
positionZ
readonly positionZ: AudioParam;Defined in: types/desktop-engine.d.ts:5027
refDistance
refDistance: number;Defined in: types/desktop-engine.d.ts:5031
rolloffFactor
rolloffFactor: number;Defined in: types/desktop-engine.d.ts:5033
Methods
addEventListener()
addEventListener(
type,
listener,
options?
): void;Defined in: types/desktop-engine.d.ts:3934
A boolean options (capture) is ignored
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | | EventListenerOrEventListenerObject | null |
options? | | boolean | AddEventListenerOptions |
Returns
void
Inherited from
connect()
Call Signature
connect<T>(
destinationNode,
output?,
input?
): T;Defined in: types/desktop-engine.d.ts:4878
Connects an output to an input of a node of the same context; returns that node, for chaining
Type Parameters
| Type Parameter |
|---|
T extends AudioNode |
Parameters
| Parameter | Type |
|---|---|
destinationNode | T |
output? | number |
input? | number |
Returns
T
Inherited from
Call Signature
connect(destinationParam, output?): void;Defined in: types/desktop-engine.d.ts:4880
Adds an output to the param's value
Parameters
| Parameter | Type |
|---|---|
destinationParam | AudioParam |
output? | number |
Returns
void
Inherited from
disconnect()
Call Signature
disconnect(): void;Defined in: types/desktop-engine.d.ts:4882
Disconnects every output, or the outputs / connections given
Returns
void
Inherited from
Call Signature
disconnect(output): void;Defined in: types/desktop-engine.d.ts:4883
Parameters
| Parameter | Type |
|---|---|
output | number |
Returns
void
Inherited from
Call Signature
disconnect(
destinationNode,
output?,
input?
): void;Defined in: types/desktop-engine.d.ts:4884
Parameters
| Parameter | Type |
|---|---|
destinationNode | AudioNode |
output? | number |
input? | number |
Returns
void
Inherited from
Call Signature
disconnect(destinationParam, output?): void;Defined in: types/desktop-engine.d.ts:4885
Parameters
| Parameter | Type |
|---|---|
destinationParam | AudioParam |
output? | number |
Returns
void
Inherited from
dispatchEvent()
dispatchEvent(event): boolean;Defined in: types/desktop-engine.d.ts:3937
Returns false when a listener called preventDefault() on a cancelable event
Parameters
| Parameter | Type |
|---|---|
event | Event |
Returns
boolean
Inherited from
removeEventListener()
removeEventListener(type, listener): void;Defined in: types/desktop-engine.d.ts:3935
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | | EventListenerOrEventListenerObject | null |
Returns
void
Inherited from
setOrientation()
setOrientation(
x,
y,
z
): void;Defined in: types/desktop-engine.d.ts:5039
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
z | number |
Returns
void
setPosition()
setPosition(
x,
y,
z
): void;Defined in: types/desktop-engine.d.ts:5038
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
z | number |
Returns
void
