audioconvert: round instead of truncate, to reduce distortion

See #2543
This commit is contained in:
Wim Taymans 2022-07-13 20:56:13 +02:00
parent d18428f8bb
commit 0ba3e7c5db
4 changed files with 58 additions and 58 deletions

View file

@ -652,7 +652,7 @@ static void run_test_noise(uint32_t fmt, uint32_t noise, uint32_t flags)
}
convert_process(&conv, op, ip, N_SAMPLES);
range = (1 << conv.noise) - 1;
range = 1 << conv.noise;
all_zero = true;
for (i = 0; i < conv.n_channels * N_SAMPLES; i++) {