We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

AudioContext.outputLatency

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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 requesting the host system to play a buffer and the time at which the first sample in the buffer is actually processed by the audio output device. It depends on the platform and the available hardware.

Syntax

var latency = 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 API
The definition of 'outputLatency' in that specification.
Working Draft  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No ? No No No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No ? No No ? No

See also

Document Tags and Contributors

Contributors to this page: Jedipedia, fscholz, chrisdavidmills
Last updated by: Jedipedia,