From 96054982a19628d603642c621c16663bdbe27bc4 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 1 Feb 2022 20:35:21 -0500 Subject: Make negative numbers pan to left --- src/mixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixer.c b/src/mixer.c index 3b49ba2..32c557d 100644 --- a/src/mixer.c +++ b/src/mixer.c @@ -207,8 +207,8 @@ static inline void input_set_pan(xas_mixer_input *input, float pan) { cosf_angle = cosf(angle); sinf_angle = sinf(angle); - input->bias_l = term * (cosf_angle + sinf_angle); - input->bias_r = term * (cosf_angle - sinf_angle); + input->bias_l = term * (cosf_angle - sinf_angle); + input->bias_r = term * (cosf_angle + sinf_angle); } xas_mixer_input *xas_mixer_input_add(xas_mixer *mixer, -- cgit v1.2.3