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

Unified Diff: Source/modules/webaudio/DynamicsCompressorNode.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/DynamicsCompressorNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/DynamicsCompressorNode.cpp
diff --git a/Source/modules/webaudio/DynamicsCompressorNode.cpp b/Source/modules/webaudio/DynamicsCompressorNode.cpp
index 787c78bb9d4d18e6b46f2e859132239788766d9c..dd64c20eca31f879efc22b4d091c5015082e5b1d 100644
--- a/Source/modules/webaudio/DynamicsCompressorNode.cpp
+++ b/Source/modules/webaudio/DynamicsCompressorNode.cpp
@@ -108,6 +108,11 @@ void DynamicsCompressorNode::uninitialize()
AudioNode::uninitialize();
}
+void DynamicsCompressorNode::clearInternalStateWhenDisabled()
+{
+ m_reduction->setValue(0);
+}
+
double DynamicsCompressorNode::tailTime() const
{
return m_dynamicsCompressor->tailTime();
« no previous file with comments | « Source/modules/webaudio/DynamicsCompressorNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698