summaryrefslogtreecommitdiff
path: root/psg.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-10-29 01:06:48 -0700
committerMichael Pavone <pavone@retrodev.com>2015-10-29 01:06:48 -0700
commit3a8f89cb47c0715d091dde6e317cebf9a4796778 (patch)
tree7cfc6815bf7af3cc8578d24c152babd28d00a9bc /psg.h
parent0a372b26313bf60fe7afedfcfeea20149f2b4399 (diff)
Somewhat better handling of high frequency PSG tones. Needs work to fully handle case where frequency > half our output sample rate
Diffstat (limited to 'psg.h')
-rw-r--r--psg.h2
1 files changed, 2 insertions, 0 deletions
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;