summaryrefslogtreecommitdiff
path: root/psg.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-20 00:18:01 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-20 00:18:01 -0700
commit1330513ae0da4236e17052c1a3ff16ec5a2bcc98 (patch)
treeae7f4b4524d0ee4a57214e497f25461681455439 /psg.h
parent38a8d12e41a45a75618f13944124f37dd30f47c3 (diff)
Fix PSG linear resampling and implement a low pass filter
Diffstat (limited to 'psg.h')
-rw-r--r--psg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/psg.h b/psg.h
index ca3f1f0..5a97e18 100644
--- a/psg.h
+++ b/psg.h
@@ -18,12 +18,12 @@ typedef struct {
uint32_t cycles;
uint32_t sample_rate;
uint32_t samples_frame;
+ int32_t lowpass_alpha;
uint16_t lsfr;
uint16_t counter_load[4];
uint16_t counters[4];
int16_t accum;
int16_t last_sample;
- int16_t sample_count;
uint8_t volume[4];
uint8_t output_state[4];
uint8_t noise_out;