summaryrefslogtreecommitdiff
path: root/psg.h
diff options
context:
space:
mode:
Diffstat (limited to 'psg.h')
-rw-r--r--psg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/psg.h b/psg.h
index be7ca6a..295a319 100644
--- a/psg.h
+++ b/psg.h
@@ -9,6 +9,7 @@ typedef struct {
double buffer_fraction;
double buffer_inc;
uint32_t buffer_pos;
+ uint32_t clock_inc;
uint32_t cycles;
uint32_t samples_frame;
uint16_t lsfr;
@@ -23,7 +24,7 @@ typedef struct {
} psg_context;
-void psg_init(psg_context * context, uint32_t sample_rate, uint32_t clock_rate, uint32_t samples_frame);
+void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t samples_frame);
void psg_write(psg_context * context, uint8_t value);
void psg_run(psg_context * context, uint32_t cycles);