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

Function OPL_KEYOFF

src/Engine/Adlib/fmopl.cpp:307–319  ·  view source on GitHub ↗

----- key off ----- */

Source from the content-addressed store, hash-verified

305}
306/* ----- key off ----- */
307INLINE void OPL_KEYOFF(OPL_SLOT *SLOT)
308{
309 if( SLOT->evm > ENV_MOD_RR)
310 {
311 /* set envelope counter from envelope output */
312 SLOT->evm = ENV_MOD_RR;
313 if( !(SLOT->evc&EG_DST) )
314 SLOT->evc = (ENV_CURVE[SLOT->evc>>ENV_BITS]<<ENV_BITS) + EG_DST;
315// SLOT->evc = EG_DST;
316 SLOT->eve = EG_DED;
317 SLOT->evs = SLOT->evsr;
318 }
319}
320
321/* ---------- calcrate Envelope Generator & Phase Generator ---------- */
322/* return : envelope output */

Callers 2

CSMKeyControllFunction · 0.85
OPLWriteRegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected