Add configure() for IIR filter.

This commit is contained in:
Jared Boone 2016-01-10 20:11:27 -08:00
parent 497adda390
commit 6f00687d88
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,10 @@
#include <hal.h>
void IIRBiquadFilter::configure(const iir_biquad_config_t& new_config) {
config = new_config;
}
void IIRBiquadFilter::execute(const buffer_s16_t& buffer_in, const buffer_s16_t& buffer_out) {
// TODO: Assert that buffer_out.count == buffer_in.count.
for(size_t i=0; i<buffer_out.count; i++) {

View File

@ -51,6 +51,8 @@ public:
{
}
void configure(const iir_biquad_config_t& new_config);
void execute(const buffer_s16_t& buffer_in, const buffer_s16_t& buffer_out);
void execute_in_place(const buffer_s16_t& buffer);