mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
HostInterface: Re-enable audio sync by default
This commit is contained in:
parent
f1289d6161
commit
3673c6e33c
|
@ -206,11 +206,11 @@ void HostInterface::UpdateSpeedLimiterState()
|
||||||
{
|
{
|
||||||
m_speed_limiter_enabled = m_settings.speed_limiter_enabled && !m_speed_limiter_temp_disabled;
|
m_speed_limiter_enabled = m_settings.speed_limiter_enabled && !m_speed_limiter_temp_disabled;
|
||||||
|
|
||||||
const bool audio_sync_enabled = m_speed_limiter_enabled;
|
const bool audio_sync_enabled = !m_system || m_paused || m_speed_limiter_enabled;
|
||||||
const bool vsync_enabled = !m_system || m_paused || (m_speed_limiter_enabled && m_settings.gpu_vsync);
|
const bool vsync_enabled = !m_system || m_paused || (m_speed_limiter_enabled && m_settings.gpu_vsync);
|
||||||
Log_InfoPrintf("Syncing to %s%s", audio_sync_enabled ? "audio" : "",
|
Log_InfoPrintf("Syncing to %s%s", audio_sync_enabled ? "audio" : "",
|
||||||
(m_speed_limiter_enabled && vsync_enabled) ? " and video" : "");
|
(m_speed_limiter_enabled && vsync_enabled) ? " and video" : "");
|
||||||
|
|
||||||
m_audio_stream->SetSync(false);
|
m_audio_stream->SetSync(audio_sync_enabled);
|
||||||
m_display->SetVSync(vsync_enabled);
|
m_display->SetVSync(vsync_enabled);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue