This article needs a technical review. How you can help.
This article needs an editorial review. How you can help.
This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
AudioBuffer constructor creates a new
var audioBuffer = new AudioBuffer(context, options)
- A reference to an
- options Optional
- Options are as follows:
length: The length in sample frames of the buffer.
numberOfChannels: The number of channels for the buffer. The default is 1.
- sampleRate: The sample rate in Hz for the buffer. The default is the sample rate of the
contextused in constructing this object.
|Web Audio API
The definition of 'AudioBuffer' in that specification.
|Working Draft||Initial definition.|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Feature||Android||Android Webview||Firefox Mobile (Gecko)||Firefox OS||IE Mobile||Opera Mobile||Safari Mobile||Chrome for Android|
|Basic support||No support||55.0||?||?||?||42||?||55.0|