summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-25 15:41:52 -0700
committerMichael Pavone <pavone@retrodev.com>2017-03-25 15:41:52 -0700
commit4a7dee9321f085f9f994a0d95e6f2190d984a2cd (patch)
treea8300e8875ce200b0e25ef10e0adc6a5dcd52a46 /ym2612.h
parentaade30756a9a806d7fea41b8e44023ae1bce9212 (diff)
Basic implementation of CSM mode that should handle documented edge cases. Dodesn't handle the weird undocumented edge cases I don't have a good understanding of yet though
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ym2612.h b/ym2612.h
index 84f1517..df2fe03 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -42,6 +42,7 @@ typedef struct {
uint8_t ams;
uint8_t pms;
uint8_t lr;
+ uint8_t keyon;
} ym_channel;
typedef struct {
@@ -93,6 +94,7 @@ typedef struct {
uint8_t lfo_counter;
uint8_t lfo_am_step;
uint8_t lfo_pm_step;
+ uint8_t csm_keyon;
uint8_t status;
uint8_t selected_reg;
uint8_t selected_part;