mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: improve noise bits
Make a new noise method called PATTERN and use it to add a slow (every 1024 samples) repeating pattern of -1, 0. Only use this method when we don't already use triangular dither. See #2540
This commit is contained in:
parent
57f63feb92
commit
ada39f3048
4 changed files with 43 additions and 20 deletions
|
|
@ -233,6 +233,7 @@ struct convert {
|
|||
#define NOISE_METHOD_RECTANGULAR 1
|
||||
#define NOISE_METHOD_TRIANGULAR 2
|
||||
#define NOISE_METHOD_TRIANGULAR_HF 3
|
||||
#define NOISE_METHOD_PATTERN 4
|
||||
uint32_t noise_method;
|
||||
float *noise;
|
||||
uint32_t noise_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue