mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
HostInterface: Fix hang when switching audio backends
This commit is contained in:
parent
257c86930f
commit
0f5bc7267f
|
@ -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 ||
|
||||||
|
|
Loading…
Reference in a new issue