From 66975faa75958a1a509a04801331a85291827580 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 27 Mar 2020 00:03:58 -0700 Subject: Initial stab at VGM logging support --- psg.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'psg.h') diff --git a/psg.h b/psg.h index cad590d..9460207 100644 --- a/psg.h +++ b/psg.h @@ -9,9 +9,11 @@ #include #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_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); 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); -- cgit v1.2.3