web api instance method
AudioPlaybackStats: resetLatency() method
Limited availability
The resetLatency() method of the AudioPlaybackStats interface resets the start of the interval during which latency statistics are measured to the currentTime.
Syntax
resetLatency()
Parameters
None.
Return value
None (undefined).
Examples
Basic usage
const audioCtx = new AudioContext();
const stats = audioCtx.playbackStats;
// ...
// Reset the latency measurement to the current time
stats.resetLatency();
See also the main AudioPlaybackStats reference page for a more in-depth example.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.