Re: [web-audio-api] Mandate a useful accepted sampling rate ranges for buffers created through AudioContext.createBuffer (#119)

> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=21223#6) by Olivier Thereaux on W3C Bugzilla. Mon, 11 Mar 2013 11:43:28 GMT

The spec currently says two things:
* An implementation must support sample-rates in at least the range 22050 to 96000.
* An exception will be thrown if the numberOfChannels or sampleRate are out-of-bounds


Looking at the discussion so far, I think the spec should say something like:

* implementations MUST support sampling rate ranges of 8-192 KHz. sampling rates beyond this range MAY be supported.
* [in The createBuffer method ] An exception MUST be thrown if sampleRate is out of bounds.

is DOM_SYNTAX_ERR the best exception though?

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/119#issuecomment-24244349

Received on Wednesday, 11 September 2013 14:34:59 UTC