From 0f5bc7267fdf866a7e8150b4f645429486b7a8cd Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 4 May 2020 03:04:00 +1000 Subject: [PATCH] HostInterface: Fix hang when switching audio backends --- src/core/host_interface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 64340de12..26f1db588 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -1065,6 +1065,8 @@ void HostInterface::UpdateSettings(SettingsInterface& si) DebugAssert(m_audio_stream); m_audio_stream.reset(); CreateAudioStream(); + m_audio_stream->PauseOutput(m_paused); + UpdateSpeedLimiterState(); } if (m_settings.video_sync_enabled != old_vsync_enabled || m_settings.audio_sync_enabled != old_audio_sync_enabled ||