From 6409b9654c78328d03c4ced4f4b651a303497873 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 30 Mar 2018 00:37:08 -0700 Subject: More audio refactoring in preparation for allowing proper sync to video with dynamic audio rate control --- psg.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'psg.h') diff --git a/psg.h b/psg.h index 4e77f20..c4648e8 100644 --- a/psg.h +++ b/psg.h @@ -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); -- cgit v1.2.3