Stop and start sound before showing the load named state dialog. Fixes reported 'sound jitter' when using the Loadstate As hotkey.

This commit is contained in:
adelikat 2012-03-08 12:37:40 +00:00
parent 405af35d72
commit add74942f7
2 changed files with 5 additions and 2 deletions

View File

@ -110,8 +110,8 @@ namespace BizHawk.MultiClient
isRunning = true;
try
{
if (LuaThread != null)
lua.DoFile(F);
//if (LuaThread != null)
// lua.DoFile(F);
}
catch (Exception e)
{

View File

@ -1854,7 +1854,10 @@ namespace BizHawk.MultiClient
if (file.Directory.Exists == false)
file.Directory.Create();
Global.Sound.StopSound();
var result = sfd.ShowDialog();
Global.Sound.StartSound();
if (result != DialogResult.OK)
return;