diff --git a/webaudio/specification.html b/webaudio/specification.html --- a/webaudio/specification.html +++ b/webaudio/specification.html @@ -909,25 +909,25 @@ interface Aud

4.1.2. Methods and Parameters

The createBuffer method

Creates an AudioBuffer of the given size. The audio data in the - buffer will be zero-initialized (silent). An exception will be thrown if + buffer will be zero-initialized (silent). An INDEX_SIZE_ERR exception MUST be thrown if the numberOfChannels or sampleRate are out-of-bounds.

The numberOfChannels parameter determines how many channels the buffer will have. An implementation must support at least 32 channels.

The length parameter determines the size of the buffer in sample-frames.

The sampleRate parameter describes the sample-rate of the linear PCM audio data in the buffer in - sample-frames per second. An implementation must support sample-rates in at least the range 22050 to 96000.

+ sample-frames per second. An implementation MUST support sample-rates in at least the range 8000 to 192000.

The createBuffer from ArrayBuffer method

Creates an AudioBuffer given the audio file data contained in the ArrayBuffer. The ArrayBuffer can, for example, be loaded from an XMLHttpRequest's response attribute after setting the responseType to "arraybuffer".