Skip to content

Interface: DynamicsCompressorNode ​

Defined in: types/desktop-engine.d.ts:6548

Mixes to stereo like StereoPannerNode; its params are "k-rate"

Extends ​

Properties ​

attack ​

ts
readonly attack: AudioParam;

Defined in: types/desktop-engine.d.ts:6552


channelCount ​

ts
channelCount: number;

Defined in: types/desktop-engine.d.ts:6351

1 to 32

Inherited from ​

AudioNode.channelCount


channelCountMode ​

ts
channelCountMode: ChannelCountMode;

Defined in: types/desktop-engine.d.ts:6352

Inherited from ​

AudioNode.channelCountMode


channelInterpretation ​

ts
channelInterpretation: ChannelInterpretation;

Defined in: types/desktop-engine.d.ts:6353

Inherited from ​

AudioNode.channelInterpretation


context ​

ts
readonly context: BaseAudioContext;

Defined in: types/desktop-engine.d.ts:6347

Inherited from ​

AudioNode.context


knee ​

ts
readonly knee: AudioParam;

Defined in: types/desktop-engine.d.ts:6550


numberOfInputs ​

ts
readonly numberOfInputs: number;

Defined in: types/desktop-engine.d.ts:6348

Inherited from ​

AudioNode.numberOfInputs


numberOfOutputs ​

ts
readonly numberOfOutputs: number;

Defined in: types/desktop-engine.d.ts:6349

Inherited from ​

AudioNode.numberOfOutputs


ratio ​

ts
readonly ratio: AudioParam;

Defined in: types/desktop-engine.d.ts:6551


reduction ​

ts
readonly reduction: number;

Defined in: types/desktop-engine.d.ts:6555

Current gain reduction in decibels


release ​

ts
readonly release: AudioParam;

Defined in: types/desktop-engine.d.ts:6553


threshold ​

ts
readonly threshold: AudioParam;

Defined in: types/desktop-engine.d.ts:6549

Methods ​

addEventListener() ​

ts
addEventListener(
   type, 
   listener, 
   options?
): void;

Defined in: types/desktop-engine.d.ts:5370

A boolean options (capture) is ignored

Parameters ​

ParameterType
typestring
listener| EventListenerOrEventListenerObject | null
options?| boolean | AddEventListenerOptions

Returns ​

void

Inherited from ​

AudioNode.addEventListener


connect() ​

Call Signature ​

ts
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 ​
ParameterType
destinationNodeT
output?number
input?number
Returns ​

T

Inherited from ​

AudioNode.connect

Call Signature ​

ts
connect(destinationParam, output?): void;

Defined in: types/desktop-engine.d.ts:6357

Adds an output to the param's value

Parameters ​
ParameterType
destinationParamAudioParam
output?number
Returns ​

void

Inherited from ​

AudioNode.connect


disconnect() ​

Call Signature ​

ts
disconnect(): void;

Defined in: types/desktop-engine.d.ts:6359

Disconnects every output, or the outputs / connections given

Returns ​

void

Inherited from ​

AudioNode.disconnect

Call Signature ​

ts
disconnect(output): void;

Defined in: types/desktop-engine.d.ts:6360

Parameters ​
ParameterType
outputnumber
Returns ​

void

Inherited from ​

AudioNode.disconnect

Call Signature ​

ts
disconnect(
   destinationNode, 
   output?, 
   input?
): void;

Defined in: types/desktop-engine.d.ts:6361

Parameters ​
ParameterType
destinationNodeAudioNode
output?number
input?number
Returns ​

void

Inherited from ​

AudioNode.disconnect

Call Signature ​

ts
disconnect(destinationParam, output?): void;

Defined in: types/desktop-engine.d.ts:6362

Parameters ​
ParameterType
destinationParamAudioParam
output?number
Returns ​

void

Inherited from ​

AudioNode.disconnect


dispatchEvent() ​

ts
dispatchEvent(event): boolean;

Defined in: types/desktop-engine.d.ts:5373

Returns false when a listener called preventDefault() on a cancelable event

Parameters ​

ParameterType
eventEvent

Returns ​

boolean

Inherited from ​

AudioNode.dispatchEvent


removeEventListener() ​

ts
removeEventListener(type, listener): void;

Defined in: types/desktop-engine.d.ts:5371

Parameters ​

ParameterType
typestring
listener| EventListenerOrEventListenerObject | null

Returns ​

void

Inherited from ​

AudioNode.removeEventListener

The SDK is released under the Apache License 2.0