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

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

Issue 2862373002: Compute tail time from Biquad coefficients (Closed)
Patch Set: Initialize tail_time_ in constructor 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/Biquad.h
diff --git a/third_party/WebKit/Source/platform/audio/Biquad.h b/third_party/WebKit/Source/platform/audio/Biquad.h
index 7a6bde199c65a8e572a4bb79f021ace858f0ef88..9d51ba31d174b6c78a67095d10680e8f4a4abd2f 100644
--- a/third_party/WebKit/Source/platform/audio/Biquad.h
+++ b/third_party/WebKit/Source/platform/audio/Biquad.h
@@ -70,6 +70,13 @@ class PLATFORM_EXPORT Biquad final {
// Resets filter state
void Reset();
+ // Compute tail frame based on the filter coefficents at index
+ // |coef_index|. The tail frame is the frame number where the
+ // impulse response of the filter falls below a threshold value.
+ // The maximum allowed frame value is given by |max_frame|. This
+ // limits how much work is done in computing the frame numer.
+ double TailFrame(int coef_index, double max_frame);
+
// Filter response at a set of n frequencies. The magnitude and
// phase response are returned in magResponse and phaseResponse.
// The phase response is in radians.
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp ('k') | third_party/WebKit/Source/platform/audio/Biquad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698