Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ Methods</h4>
<pre class=argumentdef for="BaseAudioContext/createBuffer()">
numberOfChannels: Determines how many channels the buffer will have. An implementation MUST support at least 32 channels.
length: Determines the size of the buffer in sample-frames. This MUST be at least 1.
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 8000 to 96000.
sampleRate: Describes the sample-rate of the [=linear PCM=] audio data in the buffer in sample-frames per second. See [[#sample-rates]] for the required supported range.
</pre>
<div>
<em>Return type:</em> {{AudioBuffer}}
Expand Down Expand Up @@ -2345,11 +2345,8 @@ Dictionary {{AudioContextOptions}} Members</h5>
: <dfn>sampleRate</dfn>
::
Set the {{BaseAudioContext/sampleRate}} to this value
for the {{AudioContext}} that will be created. The
supported values are the same as the sample rates for an
{{AudioBuffer}}. <span class="synchronous">A
{{NotSupportedError}} exception MUST be thrown if
the specified sample rate is not supported.</span>
for the {{AudioContext}} that will be created. See
[[#sample-rates]] for the required supported range.

If {{AudioContextOptions/sampleRate}} is not
specified, the preferred sample rate of the output device for
Expand Down Expand Up @@ -2557,7 +2554,7 @@ Constructors</h4>
<pre class=argumentdef for="OfflineAudioContext/constructor(numberOfChannels, length, sampleRate)">
numberOfChannels: Determines how many channels the buffer will have. See {{BaseAudioContext/createBuffer()}} for the supported number of channels.
length: Determines the size of the buffer in sample-frames.
sampleRate: Describes the sample-rate of the [=linear PCM=] audio data in the buffer in sample-frames per second. See {{BaseAudioContext/createBuffer()}} for valid sample rates.
sampleRate: Describes the sample-rate of the [=linear PCM=] audio data in the buffer in sample-frames per second. See [[#sample-rates]] for the required supported range.
</pre>
</dl>

Expand Down Expand Up @@ -2794,7 +2791,8 @@ Dictionary {{OfflineAudioContextOptions}} Members</h5>

: <dfn>sampleRate</dfn>
::
The sample rate for this {{OfflineAudioContext}}.
The sample rate for this {{OfflineAudioContext}}. See
[[#sample-rates]] for the required supported range.

: <dfn>renderSizeHint</dfn>
::
Expand Down Expand Up @@ -3143,7 +3141,7 @@ The allowed values for the members of this dictionary are constrained. See {{Ba

: <dfn>sampleRate</dfn>
::
The sample rate in Hz for the buffer. See {{BaseAudioContext/createBuffer()/sampleRate}} for constraints.
The sample rate in Hz for the buffer. See [[#sample-rates]] for the required supported range.
</dl>


Expand Down Expand Up @@ -11667,6 +11665,14 @@ events MUST be the same: given two operation <var>A</var> and
before <var>B<sub>Async</sub></var>. In other words, synchronous and
asynchronous sections can't be reordered.

<h3 id="sample-rates">Supported Sample Rates</h3>

<p>
Implementations MUST support sample rates between 3000 Hz and 768000 Hz,
inclusive. A {{NotSupportedError}} MUST be thrown if a sample rate outside this
range is specified.
</p>

<h3 id="rendering-loop">
Rendering an Audio Graph</h3>

Expand Down