Skip to content

AudioPlayerContext

Defined in: audio-player.ts:38

The part of an AudioContext the player uses. A Web Audio AudioContext qualifies.

readonly audioWorklet: object;

Defined in: audio-player.ts:46

Where the jitter buffer’s worklet module is loaded.

addModule(url): Promise<void>;

Load a worklet module from a URL.

Parameter Type
url string

Promise<void>


readonly baseLatency?: number;

Defined in: audio-player.ts:42

Seconds between the graph and the audio subsystem.


readonly outputLatency?: number;

Defined in: audio-player.ts:44

Seconds from the audio subsystem to the speaker; changes with the device.


readonly sampleRate: number;

Defined in: audio-player.ts:40

Frames per second the context renders at; decoded audio at another rate is resampled to it.

createGain(): AudioPlayerGainNode;

Defined in: audio-player.ts:51

Create a gain node: one per input, and the output.

AudioPlayerGainNode