Fix audio buffer looping on drag-and-drop

This commit is contained in:
YoshiRulz 2020-03-13 08:49:05 +10:00
parent 9e514dcebd
commit d02a8df549
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 5 additions and 0 deletions

View File

@ -3227,6 +3227,7 @@ namespace BizHawk.Client.EmuHawk
private void FormDragDrop(object sender, DragEventArgs e) private void FormDragDrop(object sender, DragEventArgs e)
{ {
Sound.StopSound();
try try
{ {
FormDragDrop_internal(e); FormDragDrop_internal(e);
@ -3235,6 +3236,10 @@ namespace BizHawk.Client.EmuHawk
{ {
MessageBox.Show($"Exception on drag and drop:\n{ex}"); MessageBox.Show($"Exception on drag and drop:\n{ex}");
} }
finally
{
Sound.StartSound();
}
} }
#endregion #endregion