summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-20 09:18:58 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-20 09:18:58 -0700
commitc311221fe24b3377a342a0f284313012bc38c286 (patch)
tree9e772bf9108afc0b9aa24bfe8e3d44536550b50f /ym2612.h
parent1330513ae0da4236e17052c1a3ff16ec5a2bcc98 (diff)
Implemented linear resampling and low pass filter for the YM2612
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ym2612.h b/ym2612.h
index 13a65ac..566626e 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -70,12 +70,15 @@ typedef struct {
//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;