From d02a8df549eb00a30c6b1ae14a339452841bbee9 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 13 Mar 2020 08:49:05 +1000 Subject: [PATCH] Fix audio buffer looping on drag-and-drop --- BizHawk.Client.EmuHawk/MainForm.Events.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Client.EmuHawk/MainForm.Events.cs b/BizHawk.Client.EmuHawk/MainForm.Events.cs index 52dd198e0a..8f359f1bf3 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -3227,6 +3227,7 @@ namespace BizHawk.Client.EmuHawk private void FormDragDrop(object sender, DragEventArgs e) { + Sound.StopSound(); try { FormDragDrop_internal(e); @@ -3235,6 +3236,10 @@ namespace BizHawk.Client.EmuHawk { MessageBox.Show($"Exception on drag and drop:\n{ex}"); } + finally + { + Sound.StartSound(); + } } #endregion