Interface: SyncedAudioSnapshot

A local audio snapshot. Position getters can be read separately when rendering UI.

Properties

anchor

readonly anchor: SyncedAudioAnchor | null

Current request's immutable anchor, retained while paused; null after stop.


duration

readonly duration: number

Standard duration in seconds, Infinity for loaded loops, or NaN before loading.


error

readonly error: PlotError | null

Last operational failure, cleared by a new valid attempt.


introDuration

readonly introDuration: number

Intro seconds, zero if absent, or NaN before its duration is known.


loopDuration

readonly loopDuration: number

Loop seconds, zero in standard mode, or NaN before its duration is known.


muted

readonly muted: boolean

Whether this object is locally muted.


state

readonly state: SyncedAudioState

Current local playback status.


volume

readonly volume: number

Current local linear gain in [0, 1].