From 3a8f89cb47c0715d091dde6e317cebf9a4796778 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 29 Oct 2015 01:06:48 -0700 Subject: Somewhat better handling of high frequency PSG tones. Needs work to fully handle case where frequency > half our output sample rate --- psg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'psg.h') diff --git a/psg.h b/psg.h index 4cd4552..46c07b0 100644 --- a/psg.h +++ b/psg.h @@ -21,6 +21,8 @@ typedef struct { 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; -- cgit v1.2.3