audioconvert: Always apply noise when asked

Rename empty.noise -> dither.noise and always add this amount of noise
when > 0. This also adds the noise to silent sounds, not only when
nothing is connected because that would also be a problem when an amp
needs to be kept alive with an non-0 signal.

Rename noise -> dither because we can use this also for dithering later.

See #705
This commit is contained in:
Wim Taymans 2022-06-27 11:19:01 +02:00
parent abcf7cb8d8
commit 9f55708e9d
9 changed files with 107 additions and 68 deletions

View file

@ -95,8 +95,8 @@ audioconvert_lib = static_library('audioconvert',
'fmt-ops-c.c',
'volume-ops.c',
'volume-ops-c.c',
'noise-ops.c',
'noise-ops-c.c' ],
'dither-ops.c',
'dither-ops-c.c' ],
c_args : [ simd_cargs, '-O3'],
link_with : simd_dependencies,
include_directories : [configinc],