summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-01 20:35:21 -0500
committerXANTRONIX Development2022-02-01 20:35:21 -0500
commit96054982a19628d603642c621c16663bdbe27bc4 (patch)
tree773dd54f8312451f786565de675f672a562bc494
parent27960adc8926dbcc0399bf1b2f8408ebeaaa5700 (diff)
downloadxas-96054982a19628d603642c621c16663bdbe27bc4.tar.gz
xas-96054982a19628d603642c621c16663bdbe27bc4.tar.bz2
xas-96054982a19628d603642c621c16663bdbe27bc4.zip
Make negative numbers pan to left
-rw-r--r--src/mixer.c4
1 files 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,