W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

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

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:29:44 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/119/24244349@github.com>
> [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:
Received on Wednesday, 11 September 2013 14:34:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:24 UTC