Mercurial > repos > blastem
diff psg.h @ 1909:508522f08e4d
Initial stab at VGM logging support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 27 Mar 2020 00:03:58 -0700 |
parents | 4c322abd9fa5 |
children | 2648081f3100 |
line wrap: on
line diff
--- a/psg.h Thu Mar 26 23:53:35 2020 -0700 +++ b/psg.h Fri Mar 27 00:03:58 2020 -0700 @@ -9,9 +9,11 @@ #include <stdint.h> #include "serialize.h" #include "render_audio.h" +#include "vgm.h" typedef struct { audio_source *audio; + vgm_writer *vgm; uint32_t clock_inc; uint32_t cycles; uint16_t lsfr; @@ -31,6 +33,7 @@ void psg_adjust_master_clock(psg_context * context, uint32_t master_clock); void psg_write(psg_context * context, uint8_t value); void psg_run(psg_context * context, uint32_t cycles); +void psg_vgm_log(psg_context *context, uint32_t master_clock, vgm_writer *vgm); void psg_serialize(psg_context *context, serialize_buffer *buf); void psg_deserialize(deserialize_buffer *buf, void *vcontext);