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

Unified Diff: third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.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/modules/webaudio/IIRDSPKernel.h
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.h b/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.h
index 01e2150f6cdb3359c6f22cdbf2d317035b80698a..b8119fb4c30b85937846ddace9026fa56c38dab8 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.h
+++ b/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.h
@@ -15,9 +15,7 @@ class IIRProcessor;
class IIRDSPKernel final : public AudioDSPKernel {
public:
- explicit IIRDSPKernel(IIRProcessor* processor)
- : AudioDSPKernel(processor),
- iir_(processor->Feedforward(), processor->Feedback()) {}
+ explicit IIRDSPKernel(IIRProcessor*);
// AudioDSPKernel
void Process(const float* source,
@@ -37,6 +35,9 @@ class IIRDSPKernel final : public AudioDSPKernel {
protected:
IIRFilter iir_;
+
+ private:
+ double tail_time_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698