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

Unified Diff: Source/modules/webaudio/AudioNode.cpp

Issue 645853010: Make reduction value of dynamics compressor zero when no sources are connected (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/DynamicsCompressorNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.cpp
diff --git a/Source/modules/webaudio/AudioNode.cpp b/Source/modules/webaudio/AudioNode.cpp
index 8febafca9ef112741842e3825fe0ce89013884e3..11a367664971b6e2ba266e894d42b034ba404da0 100644
--- a/Source/modules/webaudio/AudioNode.cpp
+++ b/Source/modules/webaudio/AudioNode.cpp
@@ -89,6 +89,10 @@ void AudioNode::uninitialize()
m_isInitialized = false;
}
+void AudioNode::clearInternalStateWhenDisabled()
+{
+}
+
void AudioNode::dispose()
{
ASSERT(isMainThread());
@@ -475,6 +479,7 @@ void AudioNode::disableOutputsIfNecessary()
// longer any active connections.
if (nodeType() != NodeTypeConvolver && nodeType() != NodeTypeDelay) {
m_isDisabled = true;
+ clearInternalStateWhenDisabled();
for (unsigned i = 0; i < m_outputs.size(); ++i)
output(i)->disable();
}
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/DynamicsCompressorNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698