Fix games not being FPS limited when Audio is muted

This commit is contained in:
Vincent Cunningham 2021-02-01 20:31:45 -05:00
parent f003138037
commit f5af8f5261
No known key found for this signature in database
GPG Key ID: 2F189694BB5A9932
2 changed files with 5 additions and 1 deletions

View File

@ -413,6 +413,10 @@ void CPlugins::ConfigPlugin(void* hParent, PLUGIN_TYPE Type)
}
}
m_Audio->DllConfig(hParent);
if (g_BaseSystem)
{
g_BaseSystem->RefreshSyncToAudio();
}
break;
case PLUGIN_TYPE_CONTROLLER:
if (m_Control == NULL || m_Control->DllConfig == NULL) { break; }

View File

@ -94,5 +94,5 @@ void CGameSettings::SpeedChanged(int SpeedLimit)
void CGameSettings::RefreshSyncToAudio(void)
{
m_bSyncToAudio = g_Settings->LoadBool(Game_SyncViaAudio) && g_Settings->LoadBool(Setting_SyncViaAudioEnabled);
m_bSyncToAudio = g_Settings->LoadBool(Game_SyncViaAudio) && g_Settings->LoadBool(Setting_SyncViaAudioEnabled) && g_Settings->LoadBool(Plugin_EnableAudio);
}