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);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#define MASK_7_1 _M(FL)|_M(FR)|_M(FC)|_M(LFE)|_M(SL)|_M(SR)|_M(RL)|_M(RR)
|
||||
|
||||
#define BUFFER_SIZE 4096
|
||||
#define MAX_TAPS 255
|
||||
#define MAX_TAPS 255u
|
||||
|
||||
struct channelmix {
|
||||
uint32_t src_chan;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue