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

Issue 200543005: ConvolverNode.buffer sample rate must match AudioContext rate (Closed)

Created:
6 years, 9 months ago by Raymond Toy (Google)
Modified:
5 years, 8 months ago
CC:
blink-reviews
Visibility:
Public.

Description

ConvolverNode.buffer sample rate must match AudioContext rate Throw an exception as required when the sample rate of the convolver node buffer does not match the sample rate of the audio context. Added test for this case. BUG=352776 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169501

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : Update expected results. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M LayoutTests/webaudio/dom-exceptions.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/webaudio/dom-exceptions-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/webaudio/ConvolverNode.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/webaudio/ConvolverNode.cpp View 2 chunks +11 lines, -1 line 2 comments Download
M Source/modules/webaudio/ConvolverNode.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (1 generated)
Raymond Toy
PTAL
6 years, 9 months ago (2014-03-14 21:34:17 UTC) #1
Ken Russell (switch to Gerrit)
The code looks fine, but there's a bug in the tests. https://codereview.chromium.org/200543005/diff/1/LayoutTests/webaudio/dom-exceptions.html File LayoutTests/webaudio/dom-exceptions.html (right): ...
6 years, 9 months ago (2014-03-14 23:54:11 UTC) #2
Raymond Toy
Thanks for catching these stupid mistakes. https://codereview.chromium.org/200543005/diff/1/LayoutTests/webaudio/dom-exceptions.html File LayoutTests/webaudio/dom-exceptions.html (right): https://codereview.chromium.org/200543005/diff/1/LayoutTests/webaudio/dom-exceptions.html#newcode172 LayoutTests/webaudio/dom-exceptions.html:172: oc = new ...
6 years, 9 months ago (2014-03-17 18:09:19 UTC) #3
Ken Russell (switch to Gerrit)
LGTM if it passes on the bots. Looks like there are some severe problems with ...
6 years, 9 months ago (2014-03-17 18:21:38 UTC) #4
Raymond Toy
Thanks for the review and the note about the trybots. https://codereview.chromium.org/200543005/diff/10001/LayoutTests/webaudio/dom-exceptions.html File LayoutTests/webaudio/dom-exceptions.html (right): https://codereview.chromium.org/200543005/diff/10001/LayoutTests/webaudio/dom-exceptions.html#newcode173 ...
6 years, 9 months ago (2014-03-17 19:42:13 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/200543005/diff/10001/LayoutTests/webaudio/dom-exceptions.html File LayoutTests/webaudio/dom-exceptions.html (right): https://codereview.chromium.org/200543005/diff/10001/LayoutTests/webaudio/dom-exceptions.html#newcode173 LayoutTests/webaudio/dom-exceptions.html:173: conv = oc.createConvolver(); On 2014/03/17 19:42:13, Raymond Toy wrote: ...
6 years, 9 months ago (2014-03-17 21:35:30 UTC) #6
Raymond Toy
On 2014/03/17 21:35:30, Ken Russell wrote: > https://codereview.chromium.org/200543005/diff/10001/LayoutTests/webaudio/dom-exceptions.html > File LayoutTests/webaudio/dom-exceptions.html (right): > > https://codereview.chromium.org/200543005/diff/10001/LayoutTests/webaudio/dom-exceptions.html#newcode173 ...
6 years, 9 months ago (2014-03-17 23:49:02 UTC) #7
Raymond Toy
On 2014/03/17 23:49:02, Raymond Toy wrote: > On 2014/03/17 21:35:30, Ken Russell wrote: > > ...
6 years, 9 months ago (2014-03-18 23:13:27 UTC) #8
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
6 years, 9 months ago (2014-03-18 23:14:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@google.com/200543005/50001
6 years, 9 months ago (2014-03-18 23:15:09 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 23:21:10 UTC) #11
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-18 23:21:10 UTC) #12
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
6 years, 9 months ago (2014-03-18 23:26:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@google.com/200543005/50001
6 years, 9 months ago (2014-03-18 23:26:09 UTC) #14
commit-bot: I haz the power
Change committed as 169501
6 years, 9 months ago (2014-03-19 00:04:12 UTC) #15
tkent
https://codereview.chromium.org/200543005/diff/50001/Source/modules/webaudio/ConvolverNode.cpp File Source/modules/webaudio/ConvolverNode.cpp (right): https://codereview.chromium.org/200543005/diff/50001/Source/modules/webaudio/ConvolverNode.cpp#newcode125 Source/modules/webaudio/ConvolverNode.cpp:125: } Should we do |return| here?
5 years, 8 months ago (2015-04-08 04:52:35 UTC) #17
Raymond Toy
5 years, 8 months ago (2015-04-08 15:49:44 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/200543005/diff/50001/Source/modules/webaudio/...
File Source/modules/webaudio/ConvolverNode.cpp (right):

https://codereview.chromium.org/200543005/diff/50001/Source/modules/webaudio/...
Source/modules/webaudio/ConvolverNode.cpp:125: }
On 2015/04/08 04:52:35, tkent wrote:
> Should we do |return| here?

Yes!

I'll fix this right away.

Powered by Google App Engine
This is Rietveld 408576698