+#ifdef USE_NEW_AY8910
+ uint16_t s1 = AYGetSample(0);
+ uint16_t s2 = AYGetSample(1);
+ uint16_t adjustedMockingboard = s1 + s2;
+#else
+ int16_t s1, s2, s3, s4, s5, s6;
+ int16_t * bufPtrs[6] = { &s1, &s2, &s3, &s4, &s5, &s6 };
+ AY8910Update(0, bufPtrs, 1);
+ AY8910Update(1, &bufPtrs[3], 1);
+ int16_t adjustedMockingboard = (s1 / 8) + (s2 / 8) + (s3 / 8)
+ + (s4 / 8) + (s5 / 8) + (s6 / 8);
+#endif
+//need to do this *before* mixing, as by this time, it's too late and the sample is probably already oversaturated
+// adjustedMockingboard /= 8;
+