From 8fb29af34dd0c71955c087f475c806680e4b9a7b Mon Sep 17 00:00:00 2001 From: wx956695 Date: Tue, 10 Sep 2024 16:49:18 +0800 Subject: [PATCH] Modify mapscale --- src/pulsecore/remap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsecore/remap.c b/src/pulsecore/remap.c index 35fffd7d2..05f9adb06 100644 --- a/src/pulsecore/remap.c +++ b/src/pulsecore/remap.c @@ -282,7 +282,7 @@ static void remap_channels_matrix_s16ne_c(pa_remap_t *m, int16_t *dst, const int *d += *s; } else { for (i = n; i > 0; i--, s += n_ic, d += n_oc) - *d += (int16_t) (((int32_t)*s * vol) >> 16); + *d += (int16_t) ((((int32_t)*s * vol) >> 16) * 0.99); } } } -- Gitee