diff ym2612.h @ 965:5257e85364ed

Implemented linear resampling and low pass filter for the YM2612
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 Apr 2016 09:18:58 -0700
parents 01fb50390b27
children 8d032a368dd5
line wrap: on
line diff
--- a/ym2612.h	Wed Apr 20 00:18:01 2016 -0700
+++ b/ym2612.h	Wed Apr 20 09:18:58 2016 -0700
@@ -70,12 +70,15 @@
 	//TODO: Condense the next two fields into one
 	uint32_t    write_cycle;
 	uint32_t    busy_cycles;
+	uint32_t    lowpass_alpha;
 	ym_operator operators[NUM_OPERATORS];
 	ym_channel  channels[NUM_CHANNELS];
 	uint16_t    timer_a;
 	uint16_t    timer_a_load;
 	uint16_t    env_counter;
 	ym_supp     ch3_supp[3];
+	int16_t     last_left;
+	int16_t     last_right;
 	uint8_t     timer_b;
 	uint8_t     sub_timer_b;
 	uint8_t     timer_b_load;