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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AnalyserNode.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/AnalyserNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp
index dddafd58d068e0170bedc8b1b9e4c10af2d68e5b..580753a254a802872c9044e36c45530e1ca12e42 100644
--- a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp
@@ -172,6 +172,15 @@ void AnalyserHandler::UpdatePullStatus() {
}
}
}
+
+bool AnalyserHandler::RequiresTailProcessing() const {
+ // Tail time is always non-zero so tail processing is required.
+ return true;
+}
+
+double AnalyserHandler::TailTime() const {
+ return 32768 / static_cast<double>(Context()->sampleRate());
+};
// ----------------------------------------------------------------
AnalyserNode::AnalyserNode(BaseAudioContext& context)

Powered by Google App Engine
This is Rietveld 408576698