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

Issue 2732523003: Make ConvolverNode conform to spec (Closed)

Created:
3 years, 9 months ago by Raymond Toy
Modified:
3 years, 8 months ago
Reviewers:
hongchan
CC:
hongchan, blink-reviews, chromium-reviews, haraken, kinuko+watch, Raymond Toy
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ConvolverNode conform to spec Update ConvolverNode to handle inputs and responses according to the spec. This basically means mono source with mono response produces a mono output. All other supported configurations produce a stereo output. Spec: https://webaudio.github.io/web-audio-api/#Convolution-channel-configurations and https://github.com/WebAudio/web-audio-api/pull/1176 BUG=639330 TEST=convolver-channel-modes.html Review-Url: https://codereview.chromium.org/2732523003 Cr-Commit-Position: refs/heads/master@{#461140} Committed: https://chromium.googlesource.com/chromium/src/+/44c111b0f7bd9a9bb044c527162bb5bc7e6c0250

Patch Set 1 #

Patch Set 2 : More checks and more documentation #

Patch Set 3 : Add separate test #

Patch Set 4 : Rebase #

Patch Set 5 : Fix win compiler error and remove printfs #

Patch Set 6 : Fix up duplicate testharness names #

Patch Set 7 : Add test for cascaded mono convolvers #

Patch Set 8 : Rebase and more cleanups #

Patch Set 9 : Revert unneeded AudioNode.h change #

Total comments: 22

Patch Set 10 : Address review comments #

Total comments: 5

Patch Set 11 : Remove unneeded numberOfChannels parameter and simplify code #

Messages

Total messages: 18 (6 generated)
Raymond Toy
PTAL
3 years, 9 months ago (2017-03-24 19:26:02 UTC) #4
hongchan
Looks good overall. I think the variable in Reverb.cpp could be better names, but I ...
3 years, 8 months ago (2017-03-28 16:44:35 UTC) #5
Raymond Toy
https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp File third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp (right): https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp#newcode51 third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp:51: addOutput(1); On 2017/03/28 16:44:35, hongchan wrote: > Why 1? ...
3 years, 8 months ago (2017-03-28 17:34:49 UTC) #6
Raymond Toy
https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/platform/audio/Reverb.cpp File third_party/WebKit/Source/platform/audio/Reverb.cpp (right): https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/platform/audio/Reverb.cpp#newcode128 third_party/WebKit/Source/platform/audio/Reverb.cpp:128: m_convolvers.reserveCapacity(numConvolvers); On 2017/03/28 16:44:35, hongchan wrote: > Is |numConvolvers| ...
3 years, 8 months ago (2017-03-28 18:17:21 UTC) #7
Raymond Toy
https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/platform/audio/Reverb.cpp File third_party/WebKit/Source/platform/audio/Reverb.cpp (right): https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/platform/audio/Reverb.cpp#newcode126 third_party/WebKit/Source/platform/audio/Reverb.cpp:126: size_t numResponseChannels = impulseResponseBuffer->numberOfChannels(); On 2017/03/28 16:44:35, hongchan wrote: ...
3 years, 8 months ago (2017-03-28 18:26:50 UTC) #8
Raymond Toy
PTAL at the updates that includes renaming some things.
3 years, 8 months ago (2017-03-28 18:27:22 UTC) #9
hongchan
Still lgtm. There are some nits, but I'll leave them up to you. https://codereview.chromium.org/2732523003/diff/160001/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp File ...
3 years, 8 months ago (2017-03-28 19:01:44 UTC) #10
Raymond Toy
https://codereview.chromium.org/2732523003/diff/180001/third_party/WebKit/Source/platform/audio/Reverb.cpp File third_party/WebKit/Source/platform/audio/Reverb.cpp (right): https://codereview.chromium.org/2732523003/diff/180001/third_party/WebKit/Source/platform/audio/Reverb.cpp#newcode126 third_party/WebKit/Source/platform/audio/Reverb.cpp:126: size_t numResponseChannels = impulseResponseBuffer->numberOfChannels(); On 2017/03/28 19:01:44, hongchan wrote: ...
3 years, 8 months ago (2017-03-28 20:18:03 UTC) #11
Raymond Toy
PTAL at the last change, removing unneeded parameters
3 years, 8 months ago (2017-03-30 19:43:08 UTC) #12
hongchan
lgtm
3 years, 8 months ago (2017-03-30 19:50:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732523003/200001
3 years, 8 months ago (2017-03-31 14:38:41 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 16:21:14 UTC) #18
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/44c111b0f7bd9a9bb044c527162b...

Powered by Google App Engine
This is Rietveld 408576698