← Back to release summary

WebAudio: AudioBuffer constructor only takes one argument

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

Summary

Currently the AudioBuffer constructor takes two arguments: the context, and the AudioBufferOptions. The context argument is removed so that only AudioBufferOptions is required. In addition the sampleRate member of AudioBufferOptions is now required.

Standards & signals

Docs: https://webaudio.github.io/web-audio-api/#AudioBuffer https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/AudioBuffer

View on chromestatus.com