From efcd0e0d070131f56fc73678db22f8ccbd14eae1 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Thu, 12 Dec 2013 15:38:29 +0100 Subject: [PATCH] Fix for github issue 119 Make the nominal range for the `sampleRate` argument of AudioContext.createBuffer a normative requirement, and fix the exception thrown. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 18c4f9bbc..c22a62af6 100644 --- a/index.html +++ b/index.html @@ -514,7 +514,7 @@

The AudioContext Interface

AudioBuffer createBuffer()
Creates an AudioBuffer of the given size. The audio data in the buffer will - be zero-initialized (silent). An NOT_SUPPORTED_ERR exception MUST be thrown + be zero-initialized (silent). An INDEX_SIZE_ERR exception MUST be thrown if any of the arguments is negative, zero, or outside its nominal range.
unsigned long numberOfChannels
@@ -524,8 +524,8 @@

The AudioContext Interface

Determines the size of the buffer in sample-frames.
float sampleRate
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.