MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / CSMKeyControll

Function CSMKeyControll

src/Engine/Adlib/fmopl.cpp:714–728  ·  view source on GitHub ↗

CSM Key Controll */

Source from the content-addressed store, hash-verified

712
713/* CSM Key Controll */
714INLINE void CSMKeyControll(OPL_CH *CH)
715{
716 OPL_SLOT *slot1 = &CH->SLOT[SLOT1];
717 OPL_SLOT *slot2 = &CH->SLOT[SLOT2];
718 /* all key off */
719 OPL_KEYOFF(slot1);
720 OPL_KEYOFF(slot2);
721 /* total level latch */
722 slot1->TLL = slot1->TL + (CH->ksl_base>>slot1->ksl);
723 slot1->TLL = slot1->TL + (CH->ksl_base>>slot1->ksl);
724 /* key on */
725 CH->op1_out[0] = CH->op1_out[1] = 0;
726 OPL_KEYON(slot1);
727 OPL_KEYON(slot2);
728}
729
730/* ---------- opl initialize ---------- */
731static void OPL_initalize(FM_OPL *OPL)

Callers 1

OPLTimerOverFunction · 0.85

Calls 2

OPL_KEYOFFFunction · 0.85
OPL_KEYONFunction · 0.85

Tested by

no test coverage detected