port macro retrigger to orig Furnace

This commit is contained in:
LTVA1 2024-01-17 15:28:29 +03:00
parent 3cb8190258
commit 7f94cdc930
68 changed files with 265 additions and 1 deletions

View file

@ -721,6 +721,9 @@ int DivPlatformAmiga::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -783,6 +783,9 @@ int DivPlatformArcade::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 127;
break;

View file

@ -651,6 +651,9 @@ int DivPlatformAY8910::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 15;
break;

View file

@ -653,6 +653,9 @@ int DivPlatformAY8930::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 31;
break;

View file

@ -246,6 +246,9 @@ int DivPlatformBubSysWSG::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -441,6 +441,9 @@ int DivPlatformC140::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -536,6 +536,9 @@ int DivPlatformC64::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -1022,6 +1022,9 @@ int DivPlatformES5506::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -920,6 +920,9 @@ int DivPlatformESFM::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 63;
break;

View file

@ -387,6 +387,9 @@ int DivPlatformFDS::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -311,6 +311,9 @@ int DivPlatformGA20::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -553,6 +553,9 @@ int DivPlatformGB::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -1183,6 +1183,9 @@ int DivPlatformGenesis::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 127;
break;

View file

@ -395,6 +395,9 @@ int DivPlatformK007232::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -345,6 +345,9 @@ int DivPlatformK053260::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -353,6 +353,9 @@ int DivPlatformLynx::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -327,6 +327,9 @@ int DivPlatformMMC5::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -297,6 +297,9 @@ int DivPlatformMSM5232::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -268,6 +268,9 @@ int DivPlatformMSM6258::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 8;
break;

View file

@ -226,6 +226,9 @@ int DivPlatformMSM6295::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 8;
break;

View file

@ -452,6 +452,9 @@ int DivPlatformN163::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -445,6 +445,9 @@ int DivPlatformNamcoWSG::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -659,6 +659,9 @@ int DivPlatformNES::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -1970,6 +1970,9 @@ int DivPlatformOPL::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
if (c.chan==adpcmChan) return 255;
if (pretendYMU) return 127;

View file

@ -853,6 +853,9 @@ int DivPlatformOPLL::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 15;
break;

View file

@ -474,6 +474,9 @@ int DivPlatformPCE::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -452,6 +452,9 @@ int DivPlatformPCMDAC::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -476,6 +476,9 @@ int DivPlatformPCSpeaker::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -239,6 +239,9 @@ int DivPlatformPET::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -253,6 +253,9 @@ int DivPlatformPokeMini::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -374,6 +374,9 @@ int DivPlatformPOKEY::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -180,6 +180,9 @@ int DivPlatformPong::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -188,6 +188,9 @@ int DivPlatformPV1000::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -587,6 +587,9 @@ int DivPlatformQSound::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -291,6 +291,9 @@ int DivPlatformRF5C68::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -316,6 +316,9 @@ int DivPlatformSAA1099::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 15;
break;

View file

@ -261,6 +261,9 @@ int DivPlatformSCC::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -339,6 +339,9 @@ int DivPlatformSegaPCM::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 127;
break;

View file

@ -277,6 +277,9 @@ int DivPlatformSM8521::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -420,6 +420,9 @@ int DivPlatformSMS::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -587,6 +587,9 @@ int DivPlatformSNES::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -502,6 +502,9 @@ int DivPlatformSoundUnit::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -446,6 +446,9 @@ int DivPlatformSwan::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -271,6 +271,9 @@ int DivPlatformT6W28::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -236,6 +236,9 @@ int DivPlatformTED::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -258,6 +258,9 @@ int DivPlatformTIA::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 15;
break;

View file

@ -880,6 +880,9 @@ int DivPlatformTX81Z::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
return 127;
break;

View file

@ -395,6 +395,9 @@ int DivPlatformVB::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -434,6 +434,9 @@ int DivPlatformVERA::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_EXTERNAL:
rWriteZSMSync(c.value);
break;

View file

@ -252,6 +252,9 @@ int DivPlatformVIC20::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -412,6 +412,9 @@ int DivPlatformVRC6::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -832,6 +832,9 @@ int DivPlatformX1_010::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -861,6 +861,9 @@ int DivPlatformYM2203::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
if (c.chan>2) return 15;
return 127;

View file

@ -1352,6 +1352,9 @@ int DivPlatformYM2608::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
if (c.chan>14) return 255;
if (c.chan>8) return 31;

View file

@ -1324,6 +1324,9 @@ int DivPlatformYM2610::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
if (c.chan>=adpcmBChanOffs) return 255;
if (c.chan>=adpcmAChanOffs) return 31;

View file

@ -1391,6 +1391,9 @@ int DivPlatformYM2610B::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
case DIV_CMD_GET_VOLMAX:
if (c.chan>=adpcmBChanOffs) return 255;
if (c.chan>=adpcmAChanOffs) return 31;

View file

@ -321,6 +321,9 @@ int DivPlatformYMZ280B::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -218,6 +218,9 @@ int DivPlatformZXBeeper::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}

View file

@ -288,6 +288,9 @@ int DivPlatformZXBeeperQuadTone::dispatch(DivCommand c) {
case DIV_CMD_MACRO_ON:
chan[c.chan].std.mask(c.value,false);
break;
case DIV_CMD_MACRO_RETRIG:
chan[c.chan].std.retrig(c.value);
break;
default:
break;
}