← Back to release summary

WebAudio: Add buffering/latency hint via latencyHint

Category
Multimedia
Type
New or changed feature
Status
Enabled by default (Chrome 58)
Intent stage
None

Summary

Currently, WebAudio will use the lowest latency possible for the audio device for the best interactive behavior. However, for some use-cases such as media playback, this causes unnecessary power and/or CPU utilization. The latencyHint is a hint from the developer that such a latency is not required. The latencyHint is either an AudioContextLatencyCategory value or a double specifying the desired numeric latency. This is a hint to Chrome.

Standards & signals

Docs: http://webaudio.github.io/web-audio-api/#BaseAudioContext https://webaudio.github.io/web-audio-api/#idl-def-AudioContextOptions

View on chromestatus.com