- From: Olivier Thereaux <notifications@github.com>
- Date: Wed, 11 Sep 2013 07:29:45 -0700
- To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Received on Wednesday, 11 September 2013 14:30:18 UTC
> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=21223#7) by Ehsan Akhgari [:ehsan] on W3C Bugzilla. Mon, 11 Mar 2013 15:12:34 GMT (In reply to [comment #7](#issuecomment-24244349)) > 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. That sounds fine. > is DOM_SYNTAX_ERR the best exception though? Not really. The best exception for this kind of error would be INDEX_SIZE_ERR, I think, since that is supposed to be used for out of range arguments <http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187>. --- Reply to this email directly or view it on GitHub: https://github.com/WebAudio/web-audio-api/issues/119#issuecomment-24244357
Received on Wednesday, 11 September 2013 14:30:18 UTC