Skip to content

Commit

Permalink
Fix for github issue 119
Browse files Browse the repository at this point in the history
Make the nominal range for the `sampleRate` argument of
AudioContext.createBuffer a normative requirement, and fix the exception thrown.
  • Loading branch information
padenot committed Dec 12, 2013
1 parent d4068d2 commit efcd0e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Expand Up @@ -514,7 +514,7 @@ <h2 id="AudioContext">The AudioContext Interface</h2>

<dt>AudioBuffer createBuffer()</dt>
<dd> 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.
<dl class="parameters">
<dt>unsigned long numberOfChannels</dt>
Expand All @@ -524,8 +524,8 @@ <h2 id="AudioContext">The AudioContext Interface</h2>
<dd>Determines the size of the buffer in sample-frames.</dd>
<dt>float sampleRate</dt>
<dd>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.</dd>
sample-frames per second. An implementation MUST support sample-rates in
at least the range 8000 to 192000.</dd>
</dl>
</dd>

Expand Down

0 comments on commit efcd0e0

Please sign in to comment.