fix occasional crash or corruption when starting up the audio synchronizer

This commit is contained in:
nitsuja 2009-11-08 04:54:58 +00:00
parent d7d3e9f21b
commit f0a986eeef
1 changed files with 4 additions and 1 deletions

View File

@ -2467,7 +2467,10 @@ int _main()
snd_synchmode = GetPrivateProfileInt("Sound","SynchMode",0,IniName);
snd_synchmethod = GetPrivateProfileInt("Sound","SynchMethod",0,IniName);
SPU_SetSynchMode(snd_synchmode,snd_synchmethod);
{
Lock lock;
SPU_SetSynchMode(snd_synchmode,snd_synchmethod);
}
CommonSettings.DebugConsole = GetPrivateProfileBool("Emulation", "DebugConsole", FALSE, IniName);
CommonSettings.UseExtBIOS = GetPrivateProfileBool("BIOS", "UseExtBIOS", FALSE, IniName);