mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
filter-chain: improve biquad run a little
We only need to copy source to dest on the first run.
This commit is contained in:
parent
02edfba21a
commit
aad3d1eafa
1 changed files with 4 additions and 4 deletions
|
|
@ -158,10 +158,10 @@ void dsp_biquadn_run_c(struct dsp_ops *ops, struct biquad *bq, uint32_t n_bq, ui
|
||||||
d = out[i];
|
d = out[i];
|
||||||
if (s == NULL || d == NULL)
|
if (s == NULL || d == NULL)
|
||||||
continue;
|
continue;
|
||||||
for (j = 0; j < n_bq; j++) {
|
if (n_bq > 0)
|
||||||
dsp_biquad_run_c(ops, &bq[j], d, s, n_samples);
|
dsp_biquad_run_c(ops, &bq[0], d, s, n_samples);
|
||||||
s = d;
|
for (j = 1; j < n_bq; j++)
|
||||||
}
|
dsp_biquad_run_c(ops, &bq[j], d, d, n_samples);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue