diff psg.h @ 964:e6dc30231b83

Fix PSG linear resampling and implement a low pass filter
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 Apr 2016 00:18:01 -0700
parents bd549b25c362
children 8d032a368dd5
line wrap: on
line diff
--- a/psg.h	Tue Apr 19 00:38:44 2016 -0700
+++ b/psg.h	Wed Apr 20 00:18:01 2016 -0700
@@ -18,12 +18,12 @@
 	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;