var audioContext = new AudioContext(options)
- An object containing option properties that can be set when creating the object instance. Available properties are as follows:
latencyHint: A string or double value that identifies type of playback, affecting tradeoffs between audio output latency and power consumption. The default value is
interactive. Although finer control can be achieved by passing a double value (indiciating number of seconds of latency), the preferred values are as follows:
balanced, balances audio output latency and power consumption.
interactive, provides lowest audio output latency as possible without glitching.
playback, prioritizes sustained playback without interruption over audio output latency.
|Web Audio API
The definition of 'AudioContext()' in that specification.
|Working Draft||Initial definition.|
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.
|Feature||Android||Chrome for Android||Edge mobile||Firefox for Android||IE mobile||Opera Android||iOS Safari|