setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is (mostly) backward compatible since Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=708306
TEST=AudioParam/audioparam-exceptional-values.html
Review-Url: https://codereview.chromium.org/2789883002
Cr-Commit-Position: refs/heads/master@{#464504}
Committed: https://chromium.googlesource.com/chromium/src/+/e78f7c1cc5587c0a09ca68b9519a45b1c3238ece
Description was changed from ========== setValueCurveAtTime takes sequence<float> for curve Instead of a Float32Array, the ...
3 years, 8 months ago
(2017-04-04 21:23:06 UTC)
#1
Description was changed from
==========
setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is backward compatible sine Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=
TEST=AudioParam/audioparam-exceptional-values.html
==========
to
==========
setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is backward compatible sine Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=708306
TEST=AudioParam/audioparam-exceptional-values.html
==========
Raymond Toy
Description was changed from ========== setValueCurveAtTime takes sequence<float> for curve Instead of a Float32Array, the ...
3 years, 8 months ago
(2017-04-11 15:01:45 UTC)
#2
Description was changed from
==========
setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is backward compatible sine Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=708306
TEST=AudioParam/audioparam-exceptional-values.html
==========
to
==========
setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is (mostly) backward compatible since Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=708306
TEST=AudioParam/audioparam-exceptional-values.html
==========
https://codereview.chromium.org/2789883002/diff/100001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html File third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html (right): https://codereview.chromium.org/2789883002/diff/100001/third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html#newcode109 third_party/WebKit/LayoutTests/webaudio/AudioParam/audioparam-exceptional-values.html:109: // Non-finite curve values should signal an error On ...
3 years, 8 months ago
(2017-04-11 20:11:00 UTC)
#6
PTAL. This is a minor API change where we use sequence<float> instead of Float32Array now. ...
3 years, 8 months ago
(2017-04-11 20:12:33 UTC)
#8
PTAL. This is a minor API change where we use sequence<float> instead of
Float32Array now.
I didn't write an intent for this. For most users, the change is transparent,
unless they were using non-finite values for the curve.
tkent
On 2017/04/11 at 20:12:33, rtoy wrote: > PTAL. This is a minor API change where ...
3 years, 8 months ago
(2017-04-12 13:46:07 UTC)
#9
On 2017/04/11 at 20:12:33, rtoy wrote:
> PTAL. This is a minor API change where we use sequence<float> instead of
Float32Array now.
>
> I didn't write an intent for this. For most users, the change is transparent,
unless they were using non-finite values for the curve.
It sounds reasonable. lgtm
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
3 years, 8 months ago
(2017-04-12 15:08:57 UTC)
#10
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/51620) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago
(2017-04-12 15:13:05 UTC)
#14
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/420723)
3 years, 8 months ago
(2017-04-12 17:04:25 UTC)
#19
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/420885)
3 years, 8 months ago
(2017-04-12 19:55:29 UTC)
#24
Failed to apply patch for third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt: While running git apply --index -3 -p1; <stdin>:24: trailing ...
3 years, 8 months ago
(2017-04-13 16:47:59 UTC)
#29
Failed to apply patch for
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt:
While running git apply --index -3 -p1;
<stdin>:24: trailing whitespace.
PASS param.setValueCurveAtTime(null, 0, 0) threw TypeError: "Failed to
execute 'setValueCurveAtTime' on 'AudioParam': The 1st argument is neither an
array, nor does it have indexed properties.".
<stdin>:31: trailing whitespace.
PASS < [audioparam] All assertions passed. (total 6 assertions)
error: patch failed:
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt:1
Falling back to three-way merge...
Applied patch to
'third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt'
with conflicts.
U
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
warning: 2 lines add whitespace errors.
Patch:
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
Index:
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
diff --git
a/third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
b/third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
index
82728fbee9cfc20acf485ab48a2d28a70b9a93be..f2a49d27a7094cdf807f5fc05ac582d08a15f9ee
100644
---
a/third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
+++
b/third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/webaudio/dom-exceptions-expected.txt
@@ -1,8 +1,8 @@
CONSOLE WARNING: line 341: The provided value 'fancy' is not a valid enum value
of type ChannelCountMode.
CONSOLE WARNING: line 347: The provided value 'undefined' is not a valid enum
value of type ChannelInterpretation.
-CONSOLE WARNING: line 502: The provided value '9x' is not a valid enum value of
type OverSampleType.
-CONSOLE WARNING: line 717: The provided value 'junk' is not a valid enum value
of type ChannelCountMode.
-CONSOLE WARNING: line 746: The provided value 'junk' is not a valid enum value
of type ChannelCountMode.
+CONSOLE WARNING: line 495: The provided value '9x' is not a valid enum value of
type OverSampleType.
+CONSOLE WARNING: line 710: The provided value 'junk' is not a valid enum value
of type ChannelCountMode.
+CONSOLE WARNING: line 739: The provided value 'junk' is not a valid enum value
of type ChannelCountMode.
This is a testharness.js-based test.
PASS # AUDIT TASK RUNNER STARTED.
PASS > [initialize] Initialize contexts for testing
@@ -105,14 +105,13 @@ PASS node.channelInterpretation is equal to speakers.
PASS context.destination.channelCount = 99 threw IndexSizeError: [error
message omitted].
PASS < [channel-stuff] All assertions passed. (total 7 assertions)
PASS > [audioparam]
-PASS param.setValueCurveAtTime(null, 0, 0) threw TypeError: "Failed to
execute 'setValueCurveAtTime' on 'AudioParam': parameter 1 is not of type
'Float32Array'.".
-PASS param.setValueCurveAtTime(SharedArrayBuffer view, 0, 0) threw TypeError:
"Failed to execute 'setValueCurveAtTime' on 'AudioParam': The provided
ArrayBufferView value must not be shared.".
+PASS param.setValueCurveAtTime(null, 0, 0) threw TypeError: "Failed to
execute 'setValueCurveAtTime' on 'AudioParam': The 1st argument is neither an
array, nor does it have indexed properties.".
PASS node.gain.exponentialRampToValueAtTime(-1, 0.1) did not throw an
exception.
PASS node.gain.exponentialRampToValueAtTime(0, 0.1) threw InvalidAccessError:
"Failed to execute 'exponentialRampToValueAtTime' on 'AudioParam': The float
target value provided (0) should not be in the range (-1.40130e-45,
1.40130e-45).".
PASS node.gain.exponentialRampToValueAtTime(1e-100, 0.1) threw
InvalidAccessError: "Failed to execute 'exponentialRampToValueAtTime' on
'AudioParam': The float target value provided (0) should not be in the range
(-1.40130e-45, 1.40130e-45).".
PASS node.gain.exponentialRampToValueAtTime(Math.pow(2, -149), 0.1) did not
throw an exception.
PASS node.gain.exponentialRampToValueAtTime(Math.pow(2, -150), 0.1) threw
InvalidAccessError: "Failed to execute 'exponentialRampToValueAtTime' on
'AudioParam': The float target value provided (0) should not be in the range
(-1.40130e-45, 1.40130e-45).".
-PASS < [audioparam] All assertions passed. (total 7 assertions)
+PASS < [audioparam] All assertions passed. (total 6 assertions)
PASS > [biquad]
PASS node.getFrequencyResponse(new Float32Array(1), new Float32Array(1), new
Float32Array(1)) did not throw an exception.
PASS node.getFrequencyResponse(null, new Float32Array(1), new
Float32Array(1)) threw TypeError: "Failed to execute 'getFrequencyResponse' on
'BiquadFilterNode': parameter 1 is not of type 'Float32Array'.".
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
3 years, 8 months ago
(2017-04-13 17:55:42 UTC)
#30
CQ is committing da patch. Bot data: {"patchset_id": 240001, "attempt_start_ts": 1492106142223950, "parent_rev": "16616a21c2ed290d72aba2e90cabf1c50799cebd", "commit_rev": "e78f7c1cc5587c0a09ca68b9519a45b1c3238ece"}
3 years, 8 months ago
(2017-04-13 19:31:39 UTC)
#33
CQ is committing da patch.
Bot data: {"patchset_id": 240001, "attempt_start_ts": 1492106142223950,
"parent_rev": "16616a21c2ed290d72aba2e90cabf1c50799cebd", "commit_rev":
"e78f7c1cc5587c0a09ca68b9519a45b1c3238ece"}
commit-bot: I haz the power
Description was changed from ========== setValueCurveAtTime takes sequence<float> for curve Instead of a Float32Array, the ...
3 years, 8 months ago
(2017-04-13 19:43:32 UTC)
#34
Message was sent while issue was closed.
Description was changed from
==========
setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is (mostly) backward compatible since Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=708306
TEST=AudioParam/audioparam-exceptional-values.html
==========
to
==========
setValueCurveAtTime takes sequence<float> for curve
Instead of a Float32Array, the curve parameter for an
AudioParam.setValueCurveAtTime method is now a sequence<float>. This
also implies that only finite values for the curve.
This change is (mostly) backward compatible since Float32Array is a
sequence<float>.
Added a test to verify that we throw an error if the curve contains a
non-finite value.
BUG=708306
TEST=AudioParam/audioparam-exceptional-values.html
Review-Url: https://codereview.chromium.org/2789883002
Cr-Commit-Position: refs/heads/master@{#464504}
Committed:
https://chromium.googlesource.com/chromium/src/+/e78f7c1cc5587c0a09ca68b9519a...
==========
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://chromium.googlesource.com/chromium/src/+/e78f7c1cc5587c0a09ca68b9519a45b1c3238ece
3 years, 8 months ago
(2017-04-13 19:43:33 UTC)
#35
Issue 2789883002: setValueCurveAtTime takes sequence<float> for curve
(Closed)
Created 3 years, 8 months ago by Raymond Toy
Modified 3 years, 8 months ago
Reviewers: hongchan, tkent
Base URL:
Comments: 2