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

Issue 645853010: Make reduction value of dynamics compressor zero when no sources are connected (Closed)

Created:
6 years, 2 months ago by hongchan
Modified:
6 years, 2 months ago
Reviewers:
Raymond Toy
CC:
Raymond Toy, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git/+/master
Project:
blink
Visibility:
Public.

Description

This fixes the issue of 'internal state' in DynamicsCompressorNode. When a compressor node is in the active signal chain. the reduction (.reduction) value returns the reduced amount of gain from the compression. However, when user requests the reduction value after the signal chain is deactivated (i.e. a source node stops), the returned value is the last calculated in the compressor. This value should be zero since there is no incoming audio signal. Repro case: http://jsfiddle.net/hoch/k5e3meuL/1/ Related StackOverflow post: http://stackoverflow.com/questions/26413675/how-to-fix-frozen-div-when-using-compressor-reduction-value-to-monitor-compressi BUG=425616 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184208

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -21 lines) Patch
A + LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html View 1 2 3 3 chunks +21 lines, -19 lines 0 comments Download
A + LayoutTests/webaudio/dynamicscompressor-clear-internal-state-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioNode.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M Source/modules/webaudio/DynamicsCompressorNode.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webaudio/DynamicsCompressorNode.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
hongchan
6 years, 2 months ago (2014-10-21 18:35:47 UTC) #2
Raymond Toy
https://codereview.chromium.org/645853010/diff/1/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html File LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html (right): https://codereview.chromium.org/645853010/diff/1/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html#newcode32 LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html:32: } I would simplify this by removing the variable ...
6 years, 2 months ago (2014-10-21 19:28:56 UTC) #3
Raymond Toy
Use a better description of the issue. Maybe something like "Make reduction value of dynamics ...
6 years, 2 months ago (2014-10-21 19:32:37 UTC) #4
hongchan
https://codereview.chromium.org/645853010/diff/1/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html File LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html (right): https://codereview.chromium.org/645853010/diff/1/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html#newcode32 LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html:32: } On 2014/10/21 19:28:56, Raymond Toy wrote: > I ...
6 years, 2 months ago (2014-10-21 20:20:37 UTC) #5
Raymond Toy
Almost there. A few nits and a couple more comments. https://codereview.chromium.org/645853010/diff/20001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html File LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html (right): https://codereview.chromium.org/645853010/diff/20001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html#newcode48 ...
6 years, 2 months ago (2014-10-21 20:47:57 UTC) #6
hongchan
https://codereview.chromium.org/645853010/diff/20001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html File LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html (right): https://codereview.chromium.org/645853010/diff/20001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html#newcode48 LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html:48: // Create comporessor and set parameters accordingly. On 2014/10/21 ...
6 years, 2 months ago (2014-10-21 20:58:54 UTC) #7
Raymond Toy
https://codereview.chromium.org/645853010/diff/20001/Source/modules/webaudio/AudioNode.h File Source/modules/webaudio/AudioNode.h (right): https://codereview.chromium.org/645853010/diff/20001/Source/modules/webaudio/AudioNode.h#newcode125 Source/modules/webaudio/AudioNode.h:125: virtual void clearInternalState(); On 2014/10/21 20:58:54, hoch wrote: > ...
6 years, 2 months ago (2014-10-21 21:05:54 UTC) #8
hongchan
On 2014/10/21 21:05:54, Raymond Toy wrote: > https://codereview.chromium.org/645853010/diff/20001/Source/modules/webaudio/AudioNode.h > File Source/modules/webaudio/AudioNode.h (right): > > https://codereview.chromium.org/645853010/diff/20001/Source/modules/webaudio/AudioNode.h#newcode125 ...
6 years, 2 months ago (2014-10-21 21:16:48 UTC) #9
hongchan
6 years, 2 months ago (2014-10-21 23:09:41 UTC) #10
Raymond Toy
lgtm with nits. https://codereview.chromium.org/645853010/diff/40001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html File LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html (right): https://codereview.chromium.org/645853010/diff/40001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html#newcode51 LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html:51: compressor.ratio.value = -8.0; Nit: Add comment ...
6 years, 2 months ago (2014-10-21 23:25:51 UTC) #11
hongchan
https://codereview.chromium.org/645853010/diff/40001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html File LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html (right): https://codereview.chromium.org/645853010/diff/40001/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html#newcode51 LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html:51: compressor.ratio.value = -8.0; On 2014/10/21 23:25:51, Raymond Toy wrote: ...
6 years, 2 months ago (2014-10-21 23:43:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645853010/30007
6 years, 2 months ago (2014-10-22 17:29:03 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 18:34:03 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:30007) as 184208

Powered by Google App Engine
This is Rietveld 408576698