comparison 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
comparison
equal deleted inserted replaced
964:e6dc30231b83 965:5257e85364ed
68 uint32_t sample_limit; 68 uint32_t sample_limit;
69 uint32_t current_cycle; 69 uint32_t current_cycle;
70 //TODO: Condense the next two fields into one 70 //TODO: Condense the next two fields into one
71 uint32_t write_cycle; 71 uint32_t write_cycle;
72 uint32_t busy_cycles; 72 uint32_t busy_cycles;
73 uint32_t lowpass_alpha;
73 ym_operator operators[NUM_OPERATORS]; 74 ym_operator operators[NUM_OPERATORS];
74 ym_channel channels[NUM_CHANNELS]; 75 ym_channel channels[NUM_CHANNELS];
75 uint16_t timer_a; 76 uint16_t timer_a;
76 uint16_t timer_a_load; 77 uint16_t timer_a_load;
77 uint16_t env_counter; 78 uint16_t env_counter;
78 ym_supp ch3_supp[3]; 79 ym_supp ch3_supp[3];
80 int16_t last_left;
81 int16_t last_right;
79 uint8_t timer_b; 82 uint8_t timer_b;
80 uint8_t sub_timer_b; 83 uint8_t sub_timer_b;
81 uint8_t timer_b_load; 84 uint8_t timer_b_load;
82 uint8_t ch3_mode; 85 uint8_t ch3_mode;
83 uint8_t current_op; 86 uint8_t current_op;