Add SM8521 instrument type

This commit is contained in:
cam900 2023-02-11 21:56:41 +09:00
parent 98b34ab7ce
commit 5c06470145
8 changed files with 20 additions and 4 deletions

View file

@ -924,6 +924,10 @@ void DivInstrument::putInsData2(SafeWriter* w, bool fui, const DivSong* song) {
break;
case DIV_INS_POKEMINI:
break;
case DIV_INS_SM8521:
checkForWL=true;
if (ws.enabled) featureWS=true;
break;
case DIV_INS_MAX:
break;

View file

@ -78,6 +78,7 @@ enum DivInstrumentType: unsigned short {
DIV_INS_K007232=45,
DIV_INS_GA20=46,
DIV_INS_POKEMINI=47,
DIV_INS_SM8521=48,
DIV_INS_MAX,
DIV_INS_NULL
};

View file

@ -1828,7 +1828,7 @@ void DivEngine::registerSystems() {
{"Channel 1", "Channel 2", "Noise"},
{"CH1", "CH2", "NOI"},
{DIV_CH_WAVE, DIV_CH_WAVE, DIV_CH_NOISE},
{DIV_INS_NAMCO, DIV_INS_NAMCO, DIV_INS_NAMCO},
{DIV_INS_SM8521, DIV_INS_SM8521, DIV_INS_SM8521},
{},
namcoEffectHandlerMap
);