changeset 2373:f6213de4224c

Fix psg panning implementation
author Michael Pavone <pavone@retrodev.com>
date Wed, 15 Nov 2023 23:23:04 -0800
parents 6099d4906c0c
children 97f164d1f0f6
files psg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/psg.c	Mon Nov 13 23:48:10 2023 -0800
+++ b/psg.c	Wed Nov 15 23:23:04 2023 -0800
@@ -143,11 +143,11 @@
 				if (context->pan & pan_right) {
 					right_accum += value;
 				}
-				pan_left <<= 1;
-				pan_right <<= 1;
 			} else {
 				value = 0;
 			}
+			pan_left <<= 1;
+			pan_right <<= 1;
 #ifndef IS_LIB
 			if (context->scope) {
 				scope_add_sample(context->scope, context->scope_channel[i], value, trigger[i]);