HostInterface: Re-enable audio sync by default

This commit is contained in:
Connor McLaughlin 2019-11-16 20:41:35 +10:00
parent f1289d6161
commit 3673c6e33c

View file

@ -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);
} }