HostInterface: Fix hang when switching audio backends

This commit is contained in:
Connor McLaughlin 2020-05-04 03:04:00 +10:00
parent 257c86930f
commit 0f5bc7267f

View file

@ -1065,6 +1065,8 @@ void HostInterface::UpdateSettings(SettingsInterface& si)
DebugAssert(m_audio_stream); DebugAssert(m_audio_stream);
m_audio_stream.reset(); m_audio_stream.reset();
CreateAudioStream(); 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 || if (m_settings.video_sync_enabled != old_vsync_enabled || m_settings.audio_sync_enabled != old_audio_sync_enabled ||