Mercurial > repos > blastem
diff psg.h @ 2243:0d1d5dccdd28
Initial implementation of oscilloscope debug view
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 22 Nov 2022 17:57:02 -0800 |
parents | 2648081f3100 |
children | 74112041b2c7 |
line wrap: on
line diff
--- a/psg.h Wed Sep 21 23:16:39 2022 -0700 +++ b/psg.h Tue Nov 22 17:57:02 2022 -0800 @@ -10,10 +10,12 @@ #include "serialize.h" #include "render_audio.h" #include "vgm.h" +#include "oscilloscope.h" typedef struct { audio_source *audio; vgm_writer *vgm; + oscilloscope *scope; uint32_t clock_inc; uint32_t cycles; uint16_t lsfr; @@ -21,6 +23,7 @@ uint16_t counters[4]; uint8_t volume[4]; uint8_t output_state[4]; + uint8_t scope_channel[4]; uint8_t noise_out; uint8_t noise_use_tone; uint8_t noise_type; @@ -30,6 +33,7 @@ void psg_init(psg_context * context, uint32_t master_clock, uint32_t clock_div); +void psg_enable_scope(psg_context *context, oscilloscope *scope); 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);