From f0b3f614e13cb39dc88ce9eb1694e332dfa2abb1 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 30 Sep 2022 23:22:26 -0500 Subject: [PATCH] prepare for MSM5232 --- src/engine/song.h | 2 +- src/engine/sysDef.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/engine/song.h b/src/engine/song.h index ba2d60f3b..ba66337bc 100644 --- a/src/engine/song.h +++ b/src/engine/song.h @@ -114,7 +114,7 @@ enum DivSystem { DIV_SYSTEM_NAMCO_CUS30, DIV_SYSTEM_YM2612_FRAC, DIV_SYSTEM_YM2612_FRAC_EXT, - DIV_SYSTEM_RESERVED_8, + DIV_SYSTEM_MSM5232, DIV_SYSTEM_T6W28, DIV_SYSTEM_PCM_DAC, DIV_SYSTEM_DUMMY diff --git a/src/engine/sysDef.cpp b/src/engine/sysDef.cpp index 82af63294..29b2f3d61 100644 --- a/src/engine/sysDef.cpp +++ b/src/engine/sysDef.cpp @@ -1604,13 +1604,12 @@ void DivEngine::registerSystems() { namcoEffectHandlerMap ); - // replace with an 8-channel chip in a future - sysDefs[DIV_SYSTEM_RESERVED_8]=new DivSysDef( - "Reserved", NULL, 0xbc, 0, 8, false, true, 0, false, 0, - "this was YM2612_FRAC, but due to changes this ID is reserved.", + sysDefs[DIV_SYSTEM_MSM5232]=new DivSysDef( + "OKI MSM5232", NULL, 0xbc, 0, 8, false, true, 0, false, 0, + "a square wave additive synthesis chip made by OKI. used in some arcade machines and instruments.", {"Channel 1", "Channel 2", "Channel 3", "Channel 4", "Channel 5", "Channel 6", "Channel 7", "Channel 8"}, {"CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8"}, - {DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE, DIV_CH_NOISE}, + {DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE}, {DIV_INS_STD, DIV_INS_STD, DIV_INS_STD, DIV_INS_STD, DIV_INS_STD, DIV_INS_STD, DIV_INS_STD, DIV_INS_STD} );