mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-15 07:53:17 -05:00
Add configure() for IIR filter.
This commit is contained in:
parent
497adda390
commit
6f00687d88
2 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,10 @@
|
||||||
|
|
||||||
#include <hal.h>
|
#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) {
|
void IIRBiquadFilter::execute(const buffer_s16_t& buffer_in, const buffer_s16_t& buffer_out) {
|
||||||
// TODO: Assert that buffer_out.count == buffer_in.count.
|
// TODO: Assert that buffer_out.count == buffer_in.count.
|
||||||
for(size_t i=0; i<buffer_out.count; i++) {
|
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(const buffer_s16_t& buffer_in, const buffer_s16_t& buffer_out);
|
||||||
void execute_in_place(const buffer_s16_t& buffer);
|
void execute_in_place(const buffer_s16_t& buffer);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue