Fix LoadState audio issue with Fixed Audio Timing

When Fixed Audio Timing was enabled and AI count per byte = 0, the
frequency was not being properly set, after loading a save state.
This commit is contained in:
LegendOfDragoon 2015-07-06 21:05:12 -07:00
parent 1052840b0b
commit 9dda9171d0
1 changed files with 5 additions and 0 deletions

View File

@ -1747,6 +1747,11 @@ bool CN64System::LoadState(LPCSTR FileName)
g_Reg->MI_INTR_REG |= MI_INTR_AI;
}
if (bFixedAudio())
{
m_Audio.SetFrequency(m_Reg.AI_DACRATE_REG, g_System->SystemType());
}
//Fix Random Register
while ((int)m_Reg.RANDOM_REGISTER < (int)m_Reg.WIRED_REGISTER)
{