From 617cac672b997ffde087caafbbbf54f7a6c46714 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 31 Jan 2022 23:33:12 -0500 Subject: Ensure gain is factored into mixer input sources --- src/mixer.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/mixer.c b/src/mixer.c index 001c765..0f3b5b1 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -10,50 +10,54 @@ static void mixer_apply_mono_to_mono(int16_t *dest, int16_t *src, size_t count, + float gain, float bias_l, float bias_r) { size_t i; for (i=0; inext; @@ -102,6 +107,7 @@ static ssize_t mixer_fill(xas_mixer *mixer, mixer_apply((int16_t *)(mixer->buf), buf, readlen, + input->gain, input->bias_l, input->bias_r); -- cgit v1.2.3