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; isRunning = true;
try try
{ {
if (LuaThread != null) //if (LuaThread != null)
lua.DoFile(F); // lua.DoFile(F);
} }
catch (Exception e) catch (Exception e)
{ {

View File

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