summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-03-30 00:37:08 -0700
committerMichael Pavone <pavone@retrodev.com>2018-03-30 00:37:08 -0700
commit6409b9654c78328d03c4ced4f4b651a303497873 (patch)
tree205d01d6118297ffa1570f3cacb4306b7ee7cdf8 /ym2612.h
parent431054f4686cd2a9fffa6f64751f81cdf0b39a89 (diff)
More audio refactoring in preparation for allowing proper sync to video with dynamic audio rate control
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/ym2612.h b/ym2612.h
index 8bda299..1b12285 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -63,14 +63,8 @@ typedef struct {
#define YM_PART2_REGS (YM_REG_END-YM_PART2_START)
typedef struct {
- int16_t *audio_buffer;
audio_source *audio;
- uint64_t buffer_fraction;
- uint64_t buffer_inc;
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;
@@ -82,8 +76,6 @@ typedef struct {
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;
@@ -132,7 +124,7 @@ enum {
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);