YM2612: fix CSM on ymfm

finally
This commit is contained in:
tildearrow 2023-02-05 17:42:48 -05:00
parent c665326b2d
commit 26739bba11
3 changed files with 23 additions and 7 deletions

View file

@ -431,6 +431,12 @@ bool fm_operator<RegisterType>::prepare()
// clock the key state
clock_keystate(uint32_t(m_keyon_live != 0));
if (m_keyon_live & (1<<KEYON_CSM)) {
if (!(m_keyon_live & (1<<KEYON_NORMAL))) {
clock_keystate(0);
} else {
}
}
m_keyon_live &= ~(1 << KEYON_CSM);
// we're active until we're quiet after the release