diff ym2612.h @ 1308:1b3fe6e03e7b

Reset YM2612 whenver the Z80 is reset. Fixes issue with stuck notes in Fantastic Dizzy and Kid Chameleon
author Michael Pavone <pavone@retrodev.com>
date Thu, 30 Mar 2017 23:57:30 -0700
parents babff81e4cfd
children 4e5797b3935a
line wrap: on
line diff
--- a/ym2612.h	Wed Mar 29 22:31:37 2017 -0700
+++ b/ym2612.h	Thu Mar 30 23:57:30 2017 -0700
@@ -131,6 +131,7 @@
 };
 
 void ym_init(ym2612_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t sample_limit, uint32_t options, uint32_t lowpass_cutoff);
+void ym_reset(ym2612_context *context);
 void ym_free(ym2612_context *context);
 void ym_adjust_master_clock(ym2612_context * context, uint32_t master_clock);
 void ym_run(ym2612_context * context, uint32_t to_cycle);