mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Add configure() for IIR filter.
This commit is contained in:
parent
497adda390
commit
6f00687d88
@ -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++) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user