diff --git a/Source/Project64-audio/AudioSettings.cpp b/Source/Project64-audio/AudioSettings.cpp index 4844d8b04..34ca1a721 100644 --- a/Source/Project64-audio/AudioSettings.cpp +++ b/Source/Project64-audio/AudioSettings.cpp @@ -82,8 +82,8 @@ CSettings::~CSettings() void CSettings::RegisterSettings(void) { SetModuleName("default"); - m_Set_SyncViaAudioEnabled = FindSystemSettingId("SyncViaAudioEnabled"); - m_Set_EnableAudio = FindSystemSettingId("Enable Audio"); + m_Set_SyncViaAudioEnabled = FindSystemSettingId("SyncViaAudioEnabled"); + m_Set_EnableAudio = FindSystemSettingId("Enable Audio"); m_Set_FixedAudio = FindSystemSettingId("Fixed Audio"); m_Set_SyncAudio = FindSystemSettingId("Sync Audio"); m_Set_FullSpeed = FindSystemSettingId("Full Speed"); @@ -108,10 +108,10 @@ void CSettings::RegisterSettings(void) void CSettings::SetSyncViaAudioEnabled(bool Enabled) { - if (m_Set_SyncViaAudioEnabled != 0) - { - SetSystemSetting(m_Set_SyncViaAudioEnabled, Enabled ? 1 : 0); - } + if (m_Set_SyncViaAudioEnabled != 0) + { + SetSystemSetting(m_Set_SyncViaAudioEnabled, Enabled ? 1 : 0); + } } void CSettings::SetAudioEnabled(bool Enabled) @@ -152,7 +152,6 @@ void CSettings::LogLevelChanged(void) void CSettings::ReadSettings(void) { - bool SyncAudio = m_Set_SyncAudio ? GetSystemSetting(m_Set_SyncAudio) != 0 : false; bool bLimitFPS = m_Set_LimitFPS ? GetSystemSetting(m_Set_LimitFPS) != 0 : true; m_Volume = GetSetting(Set_Volume);