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

Issue 354213002: Initialize value since calculateFinalValues may fail to do so. (Closed)

Created:
6 years, 5 months ago by Raymond Toy
Modified:
6 years, 5 months ago
CC:
blink-reviews, Raymond Toy
Project:
blink
Visibility:
Public.

Description

Initialize value since calculateFinalValues may fail to do so. Fix threading issue where updateCoefficientsIfNecessary was not always called from the audio thread. This causes the value not to be initialized. Thus, o Initialize the variable to some value, just in case. o Split updateCoefficientsIfNecessary into two functions with the code that sets the coefficients pulled out in to the new function updateCoefficients. o Simplify updateCoefficientsIfNecessary since useSmoothing was always true, and forceUpdate is not longer needed. o Add process lock to prevent the audio thread from updating the coefficients while they are being read in the main thread. The audio thread will update them the next time around. o Make getFrequencyResponse set the lock while reading the coefficients of the biquad in preparation for computing the frequency response. BUG=389219 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177250

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -60 lines) Patch
M Source/modules/webaudio/AudioParam.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/BiquadDSPKernel.h View 1 chunk +7 lines, -6 lines 0 comments Download
M Source/modules/webaudio/BiquadDSPKernel.cpp View 1 3 chunks +81 lines, -53 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Raymond Toy
PTAL
6 years, 5 months ago (2014-06-30 16:51:05 UTC) #1
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp File Source/modules/webaudio/BiquadDSPKernel.cpp (right): https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp#newcode173 Source/modules/webaudio/BiquadDSPKernel.cpp:173: updateCoefficients(cutoffFrequency, Q, gain, detune); Does this call to updateCoefficients ...
6 years, 5 months ago (2014-06-30 17:48:56 UTC) #2
Raymond Toy
https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp File Source/modules/webaudio/BiquadDSPKernel.cpp (right): https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp#newcode173 Source/modules/webaudio/BiquadDSPKernel.cpp:173: updateCoefficients(cutoffFrequency, Q, gain, detune); On 2014/06/30 17:48:55, Ken Russell ...
6 years, 5 months ago (2014-06-30 18:06:11 UTC) #3
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp File Source/modules/webaudio/BiquadDSPKernel.cpp (right): https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp#newcode173 Source/modules/webaudio/BiquadDSPKernel.cpp:173: updateCoefficients(cutoffFrequency, Q, gain, detune); On 2014/06/30 18:06:11, Raymond Toy ...
6 years, 5 months ago (2014-06-30 18:26:38 UTC) #4
Raymond Toy
https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp File Source/modules/webaudio/BiquadDSPKernel.cpp (right): https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp#newcode173 Source/modules/webaudio/BiquadDSPKernel.cpp:173: updateCoefficients(cutoffFrequency, Q, gain, detune); On 2014/06/30 18:26:38, Ken Russell ...
6 years, 5 months ago (2014-06-30 18:44:52 UTC) #5
Ken Russell (switch to Gerrit)
LGTM https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp File Source/modules/webaudio/BiquadDSPKernel.cpp (right): https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp#newcode163 Source/modules/webaudio/BiquadDSPKernel.cpp:163: // The biquad object here is not the ...
6 years, 5 months ago (2014-06-30 19:09:54 UTC) #6
Raymond Toy
Thanks for the review! https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp File Source/modules/webaudio/BiquadDSPKernel.cpp (right): https://codereview.chromium.org/354213002/diff/1/Source/modules/webaudio/BiquadDSPKernel.cpp#newcode163 Source/modules/webaudio/BiquadDSPKernel.cpp:163: // The biquad object here ...
6 years, 5 months ago (2014-06-30 20:45:40 UTC) #7
Raymond Toy
The CQ bit was checked by rtoy@chromium.org
6 years, 5 months ago (2014-06-30 20:46:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@chromium.org/354213002/20001
6 years, 5 months ago (2014-06-30 20:47:26 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-06-30 21:49:20 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-06-30 23:29:04 UTC) #11
Message was sent while issue was closed.
Change committed as 177250

Powered by Google App Engine
This is Rietveld 408576698