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 543073004: Defer changes to the channel count mode to the pre or post-render phase (Closed)

Created:
6 years, 3 months ago by Raymond Toy
Modified:
6 years, 3 months ago
Reviewers:
haraken, oilpan-reviews
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

Defer changes to the channel count mode to the pre or post-render phase In some situations, the channel count mode is updated just before the audio rendering starts. During audio processing, the channel count mode is used to set the number of channels for processing. However, for AudioBasicProcessor's, the number of kernels has not yet been updated to the correct number of channels, so the incorrect number of channels is accessed. We delay the setting of the channel count mode until the pre or post rendering phase of the audio thread where it is safe to change things since the audio graph is not being pulled. BUG=407489 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181573

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add ASSERT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M Source/modules/webaudio/AudioContext.h View 2 chunks +11 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 3 chunks +30 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioNode.h View 2 chunks +5 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 4 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Raymond Toy
PTAL. I'm not sure I got everything right for Oilpan.
6 years, 3 months ago (2014-09-05 20:00:29 UTC) #2
haraken
LGTM It looks safe to use a hash set of raw AudioNode pointers for m_deferredCountModeChange, ...
6 years, 3 months ago (2014-09-06 15:29:34 UTC) #4
haraken
Probably can we add a test for this change?
6 years, 3 months ago (2014-09-06 15:30:50 UTC) #5
Raymond Toy
On 2014/09/06 15:30:50, haraken wrote: > Probably can we add a test for this change? ...
6 years, 3 months ago (2014-09-08 17:49:41 UTC) #6
Raymond Toy
Thanks for the review! https://codereview.chromium.org/543073004/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/543073004/diff/1/Source/modules/webaudio/AudioContext.cpp#newcode912 Source/modules/webaudio/AudioContext.cpp:912: m_deferredCountModeChange.remove(node); On 2014/09/06 15:29:33, haraken ...
6 years, 3 months ago (2014-09-08 18:04:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@chromium.org/543073004/20001
6 years, 3 months ago (2014-09-08 18:05:53 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-08 19:55:52 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 181573

Powered by Google App Engine
This is Rietveld 408576698