mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 15:15:40 +00:00
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:
parent
03080351c8
commit
1eecd50f3d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue