diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-03-30 00:37:08 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-03-30 00:37:08 -0700 |
commit | 6409b9654c78328d03c4ced4f4b651a303497873 (patch) | |
tree | 205d01d6118297ffa1570f3cacb4306b7ee7cdf8 /psg.h | |
parent | 431054f4686cd2a9fffa6f64751f81cdf0b39a89 (diff) |
More audio refactoring in preparation for allowing proper sync to video with dynamic audio rate control
Diffstat (limited to 'psg.h')
-rw-r--r-- | psg.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -11,21 +11,12 @@ #include "render.h" typedef struct { - int16_t *audio_buffer; audio_source *audio; - uint64_t buffer_fraction; - uint64_t buffer_inc; - uint32_t buffer_pos; uint32_t clock_inc; uint32_t cycles; - uint32_t sample_rate; - uint32_t samples_frame; - int32_t lowpass_alpha; uint16_t lsfr; uint16_t counter_load[4]; uint16_t counters[4]; - int16_t accum; - int16_t last_sample; uint8_t volume[4]; uint8_t output_state[4]; uint8_t noise_out; @@ -35,7 +26,7 @@ typedef struct { } psg_context; -void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t samples_frame, uint32_t lowpass_cutoff); +void psg_init(psg_context * context, uint32_t master_clock, uint32_t clock_div); void psg_free(psg_context *context); void psg_adjust_master_clock(psg_context * context, uint32_t master_clock); void psg_write(psg_context * context, uint8_t value); |