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
1 changed files with 2 additions and 2 deletions

View File

@ -206,11 +206,11 @@ void HostInterface::UpdateSpeedLimiterState()
{
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);
Log_InfoPrintf("Syncing to %s%s", audio_sync_enabled ? "audio" : "",
(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);
}