applying esp-dsp IIR biquad to pipeline or element ?
Posted: Mon Dec 16, 2019 3:22 am
Hi,
I'd like to modify an I2s audio stream with something like
int NbufferSize = 1024;
float coeffs[5]; // the 5 IIR bi quad coefficients in this array
int delay(0,0);
dsps_biquad_f32 (&NsamplesBufferInPointer, &iNsamplesBufferOutPointer, NbufferSize, coeffs, delay);
Do I create my own element and that to the elements chain ( pipeline ) ?
Which callback to use for timing ? how do I know when the buffer is full and when to modify samples in buffer ?
I have successfully merged equalizer example with passthrough.
Would equalizer be the best starting point add the dsps_biquad_f32 coefficient?
I'm new to the esp-adf ( esp-idf ) environment.
I'd like to modify an I2s audio stream with something like
int NbufferSize = 1024;
float coeffs[5]; // the 5 IIR bi quad coefficients in this array
int delay(0,0);
dsps_biquad_f32 (&NsamplesBufferInPointer, &iNsamplesBufferOutPointer, NbufferSize, coeffs, delay);
Do I create my own element and that to the elements chain ( pipeline ) ?
Which callback to use for timing ? how do I know when the buffer is full and when to modify samples in buffer ?
I have successfully merged equalizer example with passthrough.
Would equalizer be the best starting point add the dsps_biquad_f32 coefficient?
I'm new to the esp-adf ( esp-idf ) environment.