Unsere Freiwilligen haben diesen Artikel noch nicht in Deutsch übersetzt. Machen Sie mit und helfen Sie, das zu erledigen!
Sie können den Artikel auch auf English (US) lesen.

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

The baseLatency read-only property of the AudioContext interface returns a double that represents the number of seconds of processing latency incurred by the AudioContext passing the audio from the AudioDestinationNode to the audio subsystem.

You can request a certain latency during construction time with the latencyHint option but the browser may ignore the option.

Syntax

var baseLatency = audioCtx.baseLatency;

Value

A double representing the base latency in seconds.

Example

//default latency ("interactive")
const audioCtx1 = new AudioContext();
console.log(audioCtx1.baseLatency);//0.01

//higher latency ("playback")
const audioCtx2 = new AudioContext({ latencyHint: 'playback' });
console.log(audioCtx2.baseLatency);//0.02

Specifications

Specification Status Comment
Web Audio API
The definition of 'baseLatency' in that specification.
Working Draft Initial definition.

Browser Compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Experimental
Chrome Full support 58Edge ? Firefox No support NoIE No support NoOpera Full support 45Safari No support NoWebView Android Full support 58Chrome Android Full support 58Edge Mobile ? Firefox Android No support NoOpera Android Full support 45Safari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

Schlagwörter des Dokuments und Mitwirkende

Mitwirkende an dieser Seite: thenoelman, Jedipedia, chrisdavidmills, fscholz, jpmedley
Zuletzt aktualisiert von: thenoelman,