AudioContext: outputLatency property
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.
Value
A double representing the output latency in seconds.
Examples
js
const audioCtx = new AudioContext();
console.log(audioCtx.outputLatency);
Specifications
Specification |
---|
Web Audio API # dom-audiocontext-outputlatency |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
outputLatency |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.