Changing Filter coefficients on the fly #1758
-
Hey I want to change my filter coefficients without resetting the esp32. I have I2S -> low pass filtered stream -> biquad filter stream -> volume stream -> a2dp_source. My current code has a change filter function like such: switch (esp.filter) With the different filter coefficients defined prior to void set up. But when I call this function, the audio gets really choppy and is breaking up frequently. Do I need to stop the different streams prior to changing filters? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I am not aware of any restriction. ps. the Equilizer3Bands is much easier to use... |
Beta Was this translation helpful? Give feedback.
I am not aware of any restriction.
The only issue, that I see is that you create some memory leaks.
I suggest to create the filters as global objects that you just assign with setFilter() instead of createing a new object each time.
ps. the Equilizer3Bands is much easier to use...