mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
audioconvert: move scaling to setup
This commit is contained in:
parent
68f883ff77
commit
c35006f040
3 changed files with 4 additions and 3 deletions
|
|
@ -408,6 +408,9 @@ int convert_init(struct convert *conv)
|
|||
if (conv->method == DITHER_METHOD_SHAPED_5 && conv->rate < 32000)
|
||||
conv->method = DITHER_METHOD_TRIANGULAR;
|
||||
|
||||
if (conv->method < DITHER_METHOD_TRIANGULAR)
|
||||
conv->scale *= 0.5f;
|
||||
|
||||
dither_flags = 0;
|
||||
if (conv->method != DITHER_METHOD_NONE || conv->noise)
|
||||
dither_flags |= CONV_DITHER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue