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 --- ym2612.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ym2612.h') diff --git a/ym2612.h b/ym2612.h index 130c729..32ef035 100644 --- a/ym2612.h +++ b/ym2612.h @@ -10,6 +10,7 @@ #include #include "serialize.h" #include "render_audio.h" +#include "vgm.h" #define NUM_PART_REGS (0xB7-0x30) #define NUM_CHANNELS 6 @@ -68,6 +69,7 @@ typedef struct { typedef struct { audio_source *audio; + vgm_writer *vgm; uint32_t clock_inc; uint32_t current_cycle; uint32_t write_cycle; @@ -144,6 +146,7 @@ void ym_run(ym2612_context * context, uint32_t to_cycle); void ym_address_write_part1(ym2612_context * context, uint8_t address); void ym_address_write_part2(ym2612_context * context, uint8_t address); void ym_data_write(ym2612_context * context, uint8_t value); +void ym_vgm_log(ym2612_context *context, uint32_t master_clock, vgm_writer *vgm); uint8_t ym_read_status(ym2612_context * context, uint32_t cycle, uint32_t port); uint8_t ym_load_gst(ym2612_context * context, FILE * gstfile); uint8_t ym_save_gst(ym2612_context * context, FILE * gstfile); -- cgit v1.2.3