summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-03-27 00:03:58 -0700
committerMichael Pavone <pavone@retrodev.com>2020-03-27 00:03:58 -0700
commit66975faa75958a1a509a04801331a85291827580 (patch)
treeef9891c95f5d100b464b2497b64e08db6ad8ab31 /ym2612.h
parentce15f59d46ea29afc64a8018e7da089c81217dea (diff)
Initial stab at VGM logging support
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ym2612.h b/ym2612.h
index 130c729..32ef035 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -10,6 +10,7 @@
#include <stdio.h>
#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);