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

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);
+
+ // Reset the internal state of the IIR filter to the initial state.
+ void ResetState();
+
private:
// Filter memory
//
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp ('k') | third_party/WebKit/Source/platform/audio/IIRFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698