From 497adda390aa107e68d1f1215cd2d62bac6eec38 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 10 Jan 2016 20:11:05 -0800 Subject: [PATCH] IIR default constructor passes no audio. Debugging mechanism -- filter must be configured to pass audio. --- firmware/baseband/dsp_iir.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/baseband/dsp_iir.hpp b/firmware/baseband/dsp_iir.hpp index 5c36f522..a34a5122 100644 --- a/firmware/baseband/dsp_iir.hpp +++ b/firmware/baseband/dsp_iir.hpp @@ -31,9 +31,18 @@ struct iir_biquad_config_t { std::array a; }; +constexpr iir_biquad_config_t iir_no_pass { + { { 0.0f, 0.0f, 0.0f } }, + { { 0.0f, 0.0f, 0.0f } }, +}; + class IIRBiquadFilter { public: // http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt + constexpr IIRBiquadFilter( + ) : IIRBiquadFilter(iir_no_pass) + { + } // Assume all coefficients are normalized so that a0=1.0 constexpr IIRBiquadFilter(