mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: use MAX_TAPS constant
This commit is contained in:
parent
ad84c45c0c
commit
33fb2f04c7
2 changed files with 2 additions and 2 deletions
|
|
@ -776,7 +776,7 @@ int channelmix_init(struct channelmix *mix)
|
|||
mix->func_name = info->name;
|
||||
|
||||
if (mix->hilbert_taps > 0) {
|
||||
mix->n_taps = SPA_CLAMP(mix->hilbert_taps, 15u, 255u) | 1;
|
||||
mix->n_taps = SPA_CLAMP(mix->hilbert_taps, 15u, MAX_TAPS) | 1;
|
||||
blackman_window(mix->taps, mix->n_taps);
|
||||
hilbert_generate(mix->taps, mix->n_taps);
|
||||
reverse_taps(mix->taps, mix->n_taps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue