Interface: PannerNode
Defined in: types/desktop-engine.d.ts:6498
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:6351
1 to 32
Inherited from
channelCountMode
channelCountMode: ChannelCountMode;Defined in: types/desktop-engine.d.ts:6352
Inherited from
channelInterpretation
channelInterpretation: ChannelInterpretation;Defined in: types/desktop-engine.d.ts:6353
Inherited from
AudioNode.channelInterpretation
coneInnerAngle
coneInnerAngle: number;Defined in: types/desktop-engine.d.ts:6511
coneOuterAngle
coneOuterAngle: number;Defined in: types/desktop-engine.d.ts:6512
coneOuterGain
coneOuterGain: number;Defined in: types/desktop-engine.d.ts:6514
0 to 1
context
readonly context: BaseAudioContext;Defined in: types/desktop-engine.d.ts:6347
Inherited from
distanceModel
distanceModel: DistanceModelType;Defined in: types/desktop-engine.d.ts:6501
maxDistance
maxDistance: number;Defined in: types/desktop-engine.d.ts:6509
numberOfInputs
readonly numberOfInputs: number;Defined in: types/desktop-engine.d.ts:6348
Inherited from
numberOfOutputs
readonly numberOfOutputs: number;Defined in: types/desktop-engine.d.ts:6349
Inherited from
orientationX
readonly orientationX: AudioParam;Defined in: types/desktop-engine.d.ts:6505
orientationY
readonly orientationY: AudioParam;Defined in: types/desktop-engine.d.ts:6506
orientationZ
readonly orientationZ: AudioParam;Defined in: types/desktop-engine.d.ts:6507
panningModel
panningModel: PanningModelType;Defined in: types/desktop-engine.d.ts:6500
"HRTF" pans like "equalpower"
positionX
readonly positionX: AudioParam;Defined in: types/desktop-engine.d.ts:6502
positionY
readonly positionY: AudioParam;Defined in: types/desktop-engine.d.ts:6503
positionZ
readonly positionZ: AudioParam;Defined in: types/desktop-engine.d.ts:6504
refDistance
refDistance: number;Defined in: types/desktop-engine.d.ts:6508
rolloffFactor
rolloffFactor: number;Defined in: types/desktop-engine.d.ts:6510
Methods
addEventListener()
addEventListener(
type,
listener,
options?
): void;Defined in: types/desktop-engine.d.ts:5370
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:6355
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:6357
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:6359
Disconnects every output, or the outputs / connections given
Returns
void
Inherited from
Call Signature
disconnect(output): void;Defined in: types/desktop-engine.d.ts:6360
Parameters
| Parameter | Type |
|---|---|
output | number |
Returns
void
Inherited from
Call Signature
disconnect(
destinationNode,
output?,
input?
): void;Defined in: types/desktop-engine.d.ts:6361
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:6362
Parameters
| Parameter | Type |
|---|---|
destinationParam | AudioParam |
output? | number |
Returns
void
Inherited from
dispatchEvent()
dispatchEvent(event): boolean;Defined in: types/desktop-engine.d.ts:5373
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:5371
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:6516
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
z | number |
Returns
void
setPosition()
setPosition(
x,
y,
z
): void;Defined in: types/desktop-engine.d.ts:6515
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
z | number |
Returns
void
