Skip to content
Merged
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
41 changes: 31 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9796,8 +9796,11 @@ <h2>
</dt>
<dd>
<p>
Given the current filter parameter settings, calculates the
frequency response for the specified frequencies.
<span class="synchronous">Given the current filter parameter
settings, synchronously calculates the frequency response for the
specified frequencies.</span> The three parameters MUST be
<code>Float32Array</code>s of the same length, or an
<code>InvalidAccessError</code> MUST be thrown.
</p>
<dl class="parameters">
<dt>
Expand All @@ -9811,19 +9814,37 @@ <h2>
Float32Array magResponse
</dt>
<dd>
This parameter specifies an output array receiving the linear
magnitude response values. If this array is shorter than
<code>frequencyHz</code> <span class="synchronous">a
<code>NotSupportedError</code> MUST be signaled</span>.
<p>
This parameter specifies an output array receiving the linear
magnitude response values.
</p>
<p>
If a value in the <code>frequencyHz</code> parameter is not
within [0; sampleRate/2], where <code>sampleRate</code> is
the value of the <a href=
"#widl-BaseAudioContext-sampleRate"><code>sampleRate</code></a>
property of the <a>AudioContext</a>, the corresponding value
at the same index of the <code>magResponse</code> array MUST
be <code>NaN</code>.
</p>
</dd>
<dt>
Float32Array phaseResponse
</dt>
<dd>
This parameter specifies an output array receiving the phase
response values in radians. If this array is shorter than
<code>frequencyHz</code> <span class="synchronous">a
<code>NotSupportedError</code> MUST be signaled</span>.
<p>
This parameter specifies an output array receiving the phase
response values in radians.
</p>
<p>
If a value in the <code>frequencyHz</code> parameter is not
within [0; sampleRate/2], where <code>sampleRate</code> is
the value of the <a href=
"#widl-BaseAudioContext-sampleRate"><code>sampleRate</code></a>
property of the <a>AudioContext</a>, the corresponding value
at the same index of the <code>phaseResponse</code> array
MUST be <code>NaN</code>.
</p>
</dd>
</dl>
</dd>
Expand Down