AudioInputClock
Defined in: audio-player.ts:78
What an input calls on its clock. A PlayoutClock qualifies; so does a player’s own clock, such as one that holds
its position while the buffer is dry.
Properties
Section titled “Properties”targetLatencyUs
Section titled “targetLatencyUs”readonly targetLatencyUs: number;Defined in: audio-player.ts:80
Caps the jitter buffer: it holds no more than this less the output delay and 40 ms.
Methods
Section titled “Methods”localNow()
Section titled “localNow()”localNow(): number;Defined in: audio-player.ts:82
The time source reports are measured on, in microseconds.
Returns
Section titled “Returns”number
reportAudio()
Section titled “reportAudio()”reportAudio( timestampUs, atUs, stats): void;Defined in: audio-player.ts:88
The audio with this timeline timestamp is audible at local time atUs. stats are the input’s, refreshed with
this report: a newer playStarts says the audio is from after the buffer last ran dry, not the tail before it.
The object is updated in place by later reports, so copy what you keep.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
timestampUs |
number |
atUs |
number |
stats |
Readonly<AudioInputStats> |
Returns
Section titled “Returns”void
stopAudio()
Section titled “stopAudio()”stopAudio(): void;Defined in: audio-player.ts:90
The input was removed.
Returns
Section titled “Returns”void