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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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
Index: third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp b/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp
index 031b484242bf74d66362c1de9f8be60d7dca5110..6b1ae74b6de1dc8ce3b6ad462210881a9277a8a9 100644
--- a/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp
@@ -121,8 +121,10 @@ void DynamicsCompressorHandler::Initialize() {
Context()->sampleRate(), defaultNumberOfOutputChannels));
}
-void DynamicsCompressorHandler::ClearInternalStateWhenDisabled() {
- reduction_ = 0;
+bool DynamicsCompressorHandler::RequiresTailProcessing() const {
+ // Always return true even if the tail time and latency might both
+ // be zero.
+ return true;
}
double DynamicsCompressorHandler::TailTime() const {

Powered by Google App Engine
This is Rietveld 408576698