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

Unified Diff: third_party/WebKit/Source/platform/audio/IIRFilter.h

Issue 2851873003: Compute the tail time for an IIRFilter from its coefficients (Closed)
Patch Set: Rebase Created 3 years, 7 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/platform/audio/IIRFilter.h
diff --git a/third_party/WebKit/Source/platform/audio/IIRFilter.h b/third_party/WebKit/Source/platform/audio/IIRFilter.h
index de2d3c6b8bee9cbfc10fe25db6dc118485fb0859..173d21e846792d877ad63ef6c1d7c240d9d53dbd 100644
--- a/third_party/WebKit/Source/platform/audio/IIRFilter.h
+++ b/third_party/WebKit/Source/platform/audio/IIRFilter.h
@@ -30,6 +30,12 @@ class PLATFORM_EXPORT IIRFilter final {
float* mag_response,
float* phase_response);
+ // Compute the tail time of the IIR filter
+ double TailTime(double sample_rate);
hongchan 2017/05/12 16:24:05 What's the frequency of this computation? On a re
Raymond Toy 2017/05/12 17:33:18 I don't quite understand this question? The TailT
hongchan 2017/05/12 17:36:45 You answered this above. We compute just once.
+
+ // Reset the internal state of the IIR filter to the initial state.
+ void ResetState();
+
private:
// Filter memory
//

Powered by Google App Engine
This is Rietveld 408576698