Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The resetLatency() method of the AudioPlaybackStats interface resets the start of the interval during which latency statistics are measured to the BaseAudioContext.currentTime.
resetLatency()None.
None (undefined).
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.