Mercurial > repos > blastem
comparison psg.h @ 2255:74112041b2c7
Proper calculation of sample rate for YM2612/PSG oscilloscope view
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 12 Dec 2022 22:26:56 -0800 |
parents | 0d1d5dccdd28 |
children |
comparison
equal
deleted
inserted
replaced
2254:8b88d57d1218 | 2255:74112041b2c7 |
---|---|
31 uint8_t pan; | 31 uint8_t pan; |
32 } psg_context; | 32 } psg_context; |
33 | 33 |
34 | 34 |
35 void psg_init(psg_context * context, uint32_t master_clock, uint32_t clock_div); | 35 void psg_init(psg_context * context, uint32_t master_clock, uint32_t clock_div); |
36 void psg_enable_scope(psg_context *context, oscilloscope *scope); | 36 void psg_enable_scope(psg_context *context, oscilloscope *scope, uint32_t master_clock); |
37 void psg_free(psg_context *context); | 37 void psg_free(psg_context *context); |
38 void psg_adjust_master_clock(psg_context * context, uint32_t master_clock); | 38 void psg_adjust_master_clock(psg_context * context, uint32_t master_clock); |
39 void psg_write(psg_context * context, uint8_t value); | 39 void psg_write(psg_context * context, uint8_t value); |
40 void psg_run(psg_context * context, uint32_t cycles); | 40 void psg_run(psg_context * context, uint32_t cycles); |
41 void psg_vgm_log(psg_context *context, uint32_t master_clock, vgm_writer *vgm); | 41 void psg_vgm_log(psg_context *context, uint32_t master_clock, vgm_writer *vgm); |