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

Issue 54173005: Signal exceptions if start/stop is called out-of-order or too many times. (Closed)

Created:
7 years, 1 month ago by Raymond Toy (Google)
Modified:
7 years, 1 month ago
CC:
blink-reviews
Visibility:
Public.

Description

Signal exceptions if start/stop is called out-of-order or too many times. For AudioBufferSourceNodes and OscillatorNodes, start and stop must signal errors when called more than once. An error must be signaled if stop is not called after start. The implementation of the legacy noteOn and noteOff methods is now merged into start and stop. This is not backwards compatible since noteOn and noteOff previously did allow multiple calls. Tests have been added for these exceptions. BUG=306139 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161113

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -54 lines) Patch
M LayoutTests/webaudio/dom-exceptions.html View 1 chunk +28 lines, -1 line 0 comments Download
M LayoutTests/webaudio/dom-exceptions-expected.txt View 1 chunk +17 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.h View 1 2 chunks +6 lines, -5 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 4 chunks +25 lines, -17 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.idl View 1 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/webaudio/AudioNode.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 chunk +45 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioScheduledSourceNode.h View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/webaudio/AudioScheduledSourceNode.cpp View 3 chunks +38 lines, -17 lines 0 comments Download
M Source/modules/webaudio/OscillatorNode.idl View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Raymond Toy (Google)
PTAL
7 years, 1 month ago (2013-10-31 20:27:08 UTC) #1
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h File Source/modules/webaudio/AudioBufferSourceNode.h (right): https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h#newcode99 Source/modules/webaudio/AudioBufferSourceNode.h:99: void startPlaying(bool isGrain, double when, double grainOffset, double grainDuration); ...
7 years, 1 month ago (2013-10-31 21:58:21 UTC) #2
Raymond Toy (Google)
https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h File Source/modules/webaudio/AudioBufferSourceNode.h (right): https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h#newcode99 Source/modules/webaudio/AudioBufferSourceNode.h:99: void startPlaying(bool isGrain, double when, double grainOffset, double grainDuration); ...
7 years, 1 month ago (2013-10-31 22:12:44 UTC) #3
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h File Source/modules/webaudio/AudioBufferSourceNode.h (right): https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h#newcode99 Source/modules/webaudio/AudioBufferSourceNode.h:99: void startPlaying(bool isGrain, double when, double grainOffset, double grainDuration); ...
7 years, 1 month ago (2013-10-31 22:14:25 UTC) #4
Raymond Toy (Google)
https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h File Source/modules/webaudio/AudioBufferSourceNode.h (right): https://codereview.chromium.org/54173005/diff/1/Source/modules/webaudio/AudioBufferSourceNode.h#newcode99 Source/modules/webaudio/AudioBufferSourceNode.h:99: void startPlaying(bool isGrain, double when, double grainOffset, double grainDuration); ...
7 years, 1 month ago (2013-10-31 22:30:53 UTC) #5
Ken Russell (switch to Gerrit)
That's cleaner. LGTM
7 years, 1 month ago (2013-10-31 22:52:40 UTC) #6
Raymond Toy (Google)
On 2013/10/31 22:52:40, Ken Russell wrote: > That's cleaner. LGTM Thanks!
7 years, 1 month ago (2013-10-31 23:04:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@google.com/54173005/80001
7 years, 1 month ago (2013-10-31 23:05:24 UTC) #8
commit-bot: I haz the power
7 years, 1 month ago (2013-11-01 00:14:10 UTC) #9
Message was sent while issue was closed.
Change committed as 161113

Powered by Google App Engine
This is Rietveld 408576698