IIR default constructor passes no audio.

Debugging mechanism -- filter must be configured to pass audio.
This commit is contained in:
Jared Boone 2016-01-10 20:11:05 -08:00
parent 172a6da36c
commit 497adda390

View File

@ -31,9 +31,18 @@ struct iir_biquad_config_t {
std::array<float, 3> 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(