AudioPlayerContext
Defined in: audio-player.ts:38
The part of an AudioContext the player uses. A Web Audio AudioContext qualifies.
Properties
Section titled “Properties”audioWorklet
Section titled “audioWorklet”readonly audioWorklet: object;Defined in: audio-player.ts:46
Where the jitter buffer’s worklet module is loaded.
addModule()
Section titled “addModule()”addModule(url): Promise<void>;Load a worklet module from a URL.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url |
string |
Returns
Section titled “Returns”Promise<void>
baseLatency?
Section titled “baseLatency?”readonly baseLatency?: number;Defined in: audio-player.ts:42
Seconds between the graph and the audio subsystem.
outputLatency?
Section titled “outputLatency?”readonly outputLatency?: number;Defined in: audio-player.ts:44
Seconds from the audio subsystem to the speaker; changes with the device.
sampleRate
Section titled “sampleRate”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.
Methods
Section titled “Methods”createGain()
Section titled “createGain()”createGain(): AudioPlayerGainNode;Defined in: audio-player.ts:51
Create a gain node: one per input, and the output.