Web Audio API | AudioContext outputLatency property
The AudioContext interface has a outputLatency property which provides an approximation of the latency in output of the current audio context. This time is between the browser requesting to the host system to start a buffer and the time at which the first sample in the buffer is actually processed by the audio output device.
Syntax:
var latency = audioCtx.outputLatency;
Return Value:
A double value is returned in seconds
Example 1:
<!DOCTYPE html> <html> <head> <title> AudioContext outputLatency property </title> </head> <body> <center> <h1 style="color:green"> GeeksforGeeks </h1> <h2>AudioContext outputLatency property</h2> <script> const audioCtx = new AudioContext(); console.log(audioCtx.outputLatency); </script> </center> </body> </html> |
chevron_right
filter_none
Output:
undefined
Supported Browsers:
-
None
Recommended Posts:
- HTML | DOM Audio buffered Property
- HTML | DOM Audio autoplay Property
- Web Audio API | AudioNode numberOfOutputs property
- HTML | DOM Audio controls Property
- HTML | DOM Audio currentTime Property
- HTML | DOM Audio currentSrc Property
- HTML | DOM Audio preload Property
- HTML | DOM Audio readyState Property
- Web Audio API | AudioNode numberOfInputs Property
- HTML | DOM Audio audioTracks Property
- Web Audio API | AudioNode context property
- HTML | DOM Audio seeking Property
- HTML | DOM Audio played Property
- HTML | DOM Audio playbackRate Property
- HTML | DOM Audio paused Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



