Skip to content

Commit 3ada40e

Browse files
rtoypadenot
authored andcommitted
Fix #1171: setValueCurveAtTime curve is sequence<float> (#1189)
Change the type of the curve parameter to sequence<float>. This specifies that only finite floats are allowed for the curve. This is a backward-compatible change since Float32Array is a sequence<float> (if all the values in Float32Array are finite floats).
1 parent e59b745 commit 3ada40e

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

index.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3836,7 +3836,7 @@ <h2 id="AudioParam">
38363836
</p>
38373837
</dd>
38383838
<dt>
3839-
AudioParam setValueCurveAtTime(Float32Array values, double
3839+
AudioParam setValueCurveAtTime(sequence&lt;float&gt; values, double
38403840
startTime, double duration)
38413841
</dt>
38423842
<dd>
@@ -3847,21 +3847,23 @@ <h2 id="AudioParam">
38473847
</p>
38483848
<dl class="parameters">
38493849
<dt>
3850-
Float32Array values
3850+
sequence&lt;float&gt; values
38513851
</dt>
38523852
<dd>
38533853
<p>
3854-
A Float32Array representing a parameter value curve. These
3855-
values will apply starting at the given time and lasting for
3856-
the given duration. When this method is called, an internal
3857-
copy of the curve is created for automation purposes.
3858-
Subsequent modifications of the contents of the passed-in
3859-
array therefore have no effect on the <a>AudioParam</a>.
3854+
A sequence of float values representing a parameter value
3855+
curve. These values will apply starting at the given time and
3856+
lasting for the given duration. When this method is called,
3857+
an internal copy of the curve is created for automation
3858+
purposes. Subsequent modifications of the contents of the
3859+
passed-in array therefore have no effect on the
3860+
<a>AudioParam</a>.
38603861
</p>
38613862
<p>
3862-
An <code>InvalidStateError</code> MUST be thrown if this
3863-
attribute is with a Float32Array that has a length less than
3864-
2.
3863+
<span class="synchronous">An <code>InvalidStateError</code>
3864+
MUST be thrown if this attribute is a
3865+
<code>sequence&lt;float&gt;</code> object that has a length
3866+
less than 2.</span>
38653867
</p>
38663868
</dd>
38673869
<dt>

0 commit comments

Comments
 (0)