Mercurial > repos > blastem
diff ym2612.h @ 1648:b7ecd0d6a77b mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 25 Dec 2018 11:12:26 -0800 |
parents | 6ce36c3f250b |
children | 804f13c090b4 |
line wrap: on
line diff
--- a/ym2612.h Sun Dec 31 10:11:16 2017 -0800 +++ b/ym2612.h Tue Dec 25 11:12:26 2018 -0800 @@ -9,6 +9,7 @@ #include <stdint.h> #include <stdio.h> #include "serialize.h" +#include "render.h" #define NUM_PART_REGS (0xB7-0x30) #define NUM_CHANNELS 6 @@ -62,14 +63,8 @@ #define YM_PART2_REGS (YM_REG_END-YM_PART2_START) typedef struct { - int16_t *audio_buffer; - int16_t *back_buffer; - uint64_t buffer_fraction; - uint64_t buffer_inc; + audio_source *audio; uint32_t clock_inc; - uint32_t buffer_pos; - uint32_t sample_rate; - uint32_t sample_limit; uint32_t current_cycle; //TODO: Condense the next two fields into one uint32_t write_cycle; @@ -81,8 +76,6 @@ 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; @@ -131,7 +124,7 @@ REG_LR_AMS_PMS = 0xB4 }; -void ym_init(ym2612_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t sample_limit, uint32_t options, uint32_t lowpass_cutoff); +void ym_init(ym2612_context * context, uint32_t master_clock, uint32_t clock_div, uint32_t options); void ym_reset(ym2612_context *context); void ym_free(ym2612_context *context); void ym_adjust_master_clock(ym2612_context * context, uint32_t master_clock);