comparison psg.c @ 2373:f6213de4224c

Fix psg panning implementation
author Michael Pavone <pavone@retrodev.com>
date Wed, 15 Nov 2023 23:23:04 -0800
parents 0343f0d5add0
children
comparison
equal deleted inserted replaced
2372:6099d4906c0c 2373:f6213de4224c
141 left_accum += value; 141 left_accum += value;
142 } 142 }
143 if (context->pan & pan_right) { 143 if (context->pan & pan_right) {
144 right_accum += value; 144 right_accum += value;
145 } 145 }
146 pan_left <<= 1;
147 pan_right <<= 1;
148 } else { 146 } else {
149 value = 0; 147 value = 0;
150 } 148 }
149 pan_left <<= 1;
150 pan_right <<= 1;
151 #ifndef IS_LIB 151 #ifndef IS_LIB
152 if (context->scope) { 152 if (context->scope) {
153 scope_add_sample(context->scope, context->scope_channel[i], value, trigger[i]); 153 scope_add_sample(context->scope, context->scope_channel[i], value, trigger[i]);
154 } 154 }
155 #endif 155 #endif