SPU: Run SPU when changing regs on voice pending key-on

Fixes menu/cursor sounds with different frequencies in Final Fantasy 7.
This commit is contained in:
Connor McLaughlin 2020-05-18 00:59:12 +10:00
parent 03080351c8
commit 1eecd50f3d

View file

@ -557,7 +557,7 @@ void SPU::WriteVoiceRegister(u32 offset, u16 value)
Assert(voice_index < 24);
Voice& voice = m_voices[voice_index];
if (voice.IsOn())
if (voice.IsOn() || m_key_on_register & (1u << voice_index))
m_tick_event->InvokeEarly();
switch (reg_index)