Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Issue 1803153002: Add min/max values for AudioParams (Closed)

Created:
4 years, 9 months ago by Raymond Toy
Modified:
4 years, 7 months ago
Reviewers:
tkent, hongchan
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add min/max values for AudioParams Each AudioParam has a nominal range given by the min and max attributes for the AudioParam. Add these new attributes and set them appropriately for each AudioParam. Print a warning if the value is set (via the setter) outside the nominal range. Spec: http://webaudio.github.io/web-audio-api/#AudioParam WebAudio issue: https://github.com/WebAudio/web-audio-api/issues/673 Intent: https://groups.google.com/a/chromium.org/d/msg/blink-dev/CVOAEqoa2dc/OBPHcGFSBwAJ BUG=594594 TEST=audioparam-nominal-range.html Committed: https://crrev.com/71df40e1bab3e8d1bb48f539af9ae9cbb03f9bba Cr-Commit-Position: refs/heads/master@{#393861}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Added updated values for AudioBufferSource params #

Patch Set 6 : Add warning messages #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : #

Patch Set 10 : Rebase and update to print param name #

Patch Set 11 : Rename min/max to minValue/maxValue #

Patch Set 12 : Rebase #

Total comments: 25

Patch Set 13 : Address review comments #

Patch Set 14 : Update test results #

Patch Set 15 : Add warnings for automations #

Total comments: 1

Patch Set 16 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+729 lines, -21 lines) Patch
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +396 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +194 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-automation-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/osc-custom-sweep-snr-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/osc-sawtooth-sweep-snr-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/osc-sine-sweep-snr-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/osc-square-sweep-snr-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/osc-triangle-sweep-snr-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/periodicwave-contexts-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/resources/stereopanner-testing.js View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/stereopannernode-panning-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +26 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +70 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DelayNode.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803153002/20001
4 years, 9 months ago (2016-03-18 22:54:50 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/197722)
4 years, 9 months ago (2016-03-19 00:13:37 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803153002/40001
4 years, 8 months ago (2016-03-30 16:26:12 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-30 18:56:47 UTC) #8
Raymond Toy
PTAL
4 years, 7 months ago (2016-05-03 16:52:54 UTC) #11
hongchan
I raised the issue on min/max attribute names: https://github.com/WebAudio/web-audio-api/issues/762 We can wait until this gets ...
4 years, 7 months ago (2016-05-03 20:30:12 UTC) #13
Raymond Toy
On 2016/05/03 20:30:12, hoch wrote: > I raised the issue on min/max attribute names: > ...
4 years, 7 months ago (2016-05-03 20:35:33 UTC) #14
hongchan
On 2016/05/03 20:35:33, Raymond Toy wrote: > On 2016/05/03 20:30:12, hoch wrote: > > I ...
4 years, 7 months ago (2016-05-03 20:40:57 UTC) #15
hongchan
On 2016/05/03 20:40:57, hoch wrote: > On 2016/05/03 20:35:33, Raymond Toy wrote: > > On ...
4 years, 7 months ago (2016-05-06 16:54:37 UTC) #16
Raymond Toy
On 2016/05/06 16:54:37, hoch wrote: > On 2016/05/03 20:40:57, hoch wrote: > > On 2016/05/03 ...
4 years, 7 months ago (2016-05-12 20:46:49 UTC) #17
hongchan
https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (right): https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#newcode191 third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:191: getter max maxValue? https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#newcode192 third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:192: getter min minValue? https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt ...
4 years, 7 months ago (2016-05-13 01:30:15 UTC) #18
Raymond Toy
https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt File third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt (right): https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt#newcode19 third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt:19: CONSOLE WARNING: Oscillator.frequency value 48001 outside nominal range [0, ...
4 years, 7 months ago (2016-05-13 17:06:15 UTC) #19
Raymond Toy
https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (right): https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#newcode191 third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:191: getter max On 2016/05/13 01:30:14, hoch wrote: > maxValue? ...
4 years, 7 months ago (2016-05-13 18:40:32 UTC) #20
hongchan
lgtm https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt File third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt (right): https://codereview.chromium.org/1803153002/diff/220001/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt#newcode19 third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt:19: CONSOLE WARNING: Oscillator.frequency value 48001 outside nominal range ...
4 years, 7 months ago (2016-05-13 21:26:23 UTC) #21
Raymond Toy
tkent: PTAL as API owner. We're just adding minValue and maxValue to the AudioParam. (Do ...
4 years, 7 months ago (2016-05-13 21:55:11 UTC) #23
tkent
lgtm An API owner needs to review this because LayoutTests/virtual/stable/webexposed/ is owned by API owners. ...
4 years, 7 months ago (2016-05-15 23:50:10 UTC) #24
Raymond Toy
On 2016/05/15 23:50:10, tkent wrote: > lgtm > > An API owner needs to review ...
4 years, 7 months ago (2016-05-16 16:13:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803153002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803153002/300001
4 years, 7 months ago (2016-05-16 16:14:50 UTC) #28
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 7 months ago (2016-05-16 18:03:17 UTC) #30
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 18:04:19 UTC) #32
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/71df40e1bab3e8d1bb48f539af9ae9cbb03f9bba
Cr-Commit-Position: refs/heads/master@{#393861}

Powered by Google App Engine
This is Rietveld 408576698