API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceAudioOutputClockSnapshot

@codexo/exojs / audio / stable

One correlated reading of the audio clock against the `performance.now()` timeline.

5
props
0
methods
0
events
Import
import { AudioOutputClockSnapshot } from '@codexo/exojs'

One correlated reading of the audio clock against the `performance.now()` timeline.

Properties5
Processing latency the context adds between a rendered quantum and the audio subsystem, or null where the environment does not report it.
contextTime: number
Audio-context seconds, on the same scale as AudioContext.currentTime.
Latency between the audio subsystem and the output device, or null where the environment does not report it - most browsers other than Chromium.
performanceTime: number
Milliseconds on the performance.now() timeline, naming the same instant as contextTime.
source: "estimated" | "output-timestamp"
How the pair was obtained. 'output-timestamp' comes from AudioContext.getOutputTimestamp() and names the sample the device is actually playing. 'estimated' pairs currentTime with performance.now() read back to back, which is what the environment allows when getOutputTimestamp() is missing or has not produced a usable pair yet; it leads the true output by roughly the output latency.
Source