diff psg.h @ 838:9a5dc22297f2

Somewhat better handling of high frequency PSG tones. Needs work to fully handle case where frequency > half our output sample rate
author Michael Pavone <pavone@retrodev.com>
date Thu, 29 Oct 2015 01:06:48 -0700
parents 3e1573fa22cf
children 252dfd29831d
line wrap: on
line diff
--- a/psg.h	Wed Oct 28 19:45:24 2015 -0700
+++ b/psg.h	Thu Oct 29 01:06:48 2015 -0700
@@ -21,6 +21,8 @@
 	uint16_t lsfr;
 	uint16_t counter_load[4];
 	uint16_t counters[4];
+	int16_t  accum;
+	int16_t  sample_count;
 	uint8_t  volume[4];
 	uint8_t  output_state[4];
 	uint8_t  noise_out;