Skip to content

Commit d85cf14

Browse files
author
Michael Wilson
committed
Update required sample rate support range
1 parent 7f58ac7 commit d85cf14

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

index.bs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,15 @@ of their replacements:
677677
<h2 id="audioapi">
678678
The Audio API</h2>
679679

680+
<h3 id="sample-rates">Supported Sample Rates</h3>
681+
682+
<p>
683+
Implementations MUST support sample rates between 3000 Hz and 768000 Hz,
684+
inclusive. A {{NotSupportedError}} MUST be thrown if a sample rate outside this
685+
range is specified.
686+
</p>
687+
688+
680689
<!--
681690
████████ ███ ██████ ████████ ███ ██████
682691
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
@@ -979,7 +988,7 @@ Methods</h4>
979988
<pre class=argumentdef for="BaseAudioContext/createBuffer()">
980989
numberOfChannels: Determines how many channels the buffer will have. An implementation MUST support at least 32 channels.
981990
length: Determines the size of the buffer in sample-frames. This MUST be at least 1.
982-
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.
991+
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.
983992
</pre>
984993
<div>
985994
<em>Return type:</em> {{AudioBuffer}}
@@ -2345,11 +2354,8 @@ Dictionary {{AudioContextOptions}} Members</h5>
23452354
: <dfn>sampleRate</dfn>
23462355
::
23472356
Set the {{BaseAudioContext/sampleRate}} to this value
2348-
for the {{AudioContext}} that will be created. The
2349-
supported values are the same as the sample rates for an
2350-
{{AudioBuffer}}. <span class="synchronous">A
2351-
{{NotSupportedError}} exception MUST be thrown if
2352-
the specified sample rate is not supported.</span>
2357+
for the {{AudioContext}} that will be created. See
2358+
[[#sample-rates]] for the required supported range.
23532359

23542360
If {{AudioContextOptions/sampleRate}} is not
23552361
specified, the preferred sample rate of the output device for
@@ -2557,7 +2563,7 @@ Constructors</h4>
25572563
<pre class=argumentdef for="OfflineAudioContext/constructor(numberOfChannels, length, sampleRate)">
25582564
numberOfChannels: Determines how many channels the buffer will have. See {{BaseAudioContext/createBuffer()}} for the supported number of channels.
25592565
length: Determines the size of the buffer in sample-frames.
2560-
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.
2566+
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.
25612567
</pre>
25622568
</dl>
25632569

@@ -2794,7 +2800,8 @@ Dictionary {{OfflineAudioContextOptions}} Members</h5>
27942800

27952801
: <dfn>sampleRate</dfn>
27962802
::
2797-
The sample rate for this {{OfflineAudioContext}}.
2803+
The sample rate for this {{OfflineAudioContext}}. See
2804+
[[#sample-rates]] for the required supported range.
27982805

27992806
: <dfn>renderSizeHint</dfn>
28002807
::
@@ -3143,7 +3150,7 @@ The allowed values for the members of this dictionary are constrained. See {{Ba
31433150

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

31493156

0 commit comments

Comments
 (0)