mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
filter-chain: fix bq_raw activate
The raw biquad takes its values from the config and then updates the control ports with them in activate. At runtime, the changes to the ports are applied to the biquad. Other biquads take values from the config ports in activate.
This commit is contained in:
parent
880c1b0bd6
commit
f64c21ed81
1 changed files with 6 additions and 8 deletions
|
|
@ -448,14 +448,12 @@ static void bq_activate(void * Instance)
|
|||
{
|
||||
struct builtin *impl = Instance;
|
||||
if (impl->type == BQ_NONE) {
|
||||
float b0, b1, b2, a0, a1, a2;
|
||||
b0 = impl->port[5][0];
|
||||
b1 = impl->port[6][0];
|
||||
b2 = impl->port[7][0];
|
||||
a0 = impl->port[8][0];
|
||||
a1 = impl->port[9][0];
|
||||
a2 = impl->port[10][0];
|
||||
bq_raw_update(impl, b0, b1, b2, a0, a1, a2);
|
||||
impl->port[5][0] = impl->b0;
|
||||
impl->port[6][0] = impl->b1;
|
||||
impl->port[7][0] = impl->b2;
|
||||
impl->port[8][0] = impl->a0;
|
||||
impl->port[9][0] = impl->a1;
|
||||
impl->port[10][0] = impl->a2;
|
||||
} else {
|
||||
float freq = impl->port[2][0];
|
||||
float Q = impl->port[3][0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue