Fix regression

This commit is contained in:
cam900 2022-09-23 13:50:46 +09:00 committed by GitHub
parent 3515234bdc
commit 12d55ad99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ void x1_010_core::voice_t::reg_w(u8 offset, u8 data)
m_flag.write(data);
if (!prev_keyon && m_flag.keyon()) // Key on
{
m_acc = m_flag.wavetable() ? 0 : (u32(m_start_envfreq) << 16);
m_acc = m_flag.wavetable() ? 0 : (u32(m_start_envfreq) << 17);
m_env_acc = 0;
}
break;