Web/API/AudioContext/outputLatency

From Get docs

The outputLatency read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.

This is the time, in seconds, between the browser passing an audio buffer out of an audio graph over to the host system's audio subsystem to play, and the time at which the first sample in the buffer is actually processed by the audio output device.

It varies depending on the platform and the available hardware.

Syntax

var outputLatency = audioCtx.outputLatency;

Value

A double representing the output latency in seconds.

Example

const audioCtx = new AudioContext();
console.log(audioCtx.outputLatency);

Specifications

Specification Status Comment
Web Audio APIThe definition of 'outputLatency' in that specification. Working Draft

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
outputLatency Chrome

No support No

Edge

No support No

Firefox

Full support 70

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

No support No

Chrome Android

No support No

Firefox Android

No support No

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

No support No

Legend

Full support  
Full support
No support  
No support


See also