Add an option for the lower latency audio mode we had in an #ifdef before

This commit is contained in:
Henrik Rydgard committed 2013-08-24 11:56:39 +02:00
1 parent 441a4e406b
commit 507050e966
4 files changed
+34 -25

No files matched your search

+3 -1
View File
@@ -151,7 +151,8 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename)
sound->Get("EnableAtrac3plus", &bEnableAtrac3plus, true);
sound->Get("VolumeBGM", &iBGMVolume, 7);
sound->Get("VolumeSFX", &iSFXVolume, 7);
sound->Get("LowLatency", &bLowLatencyAudio, false);
IniFile::Section *control = iniFile.GetOrCreateSection("Control");
control->Get("ShowAnalogStick", &bShowAnalogStick, true);
#ifdef BLACKBERRY
@@ -295,6 +296,7 @@ void Config::Save() {
sound->Set("EnableAtrac3plus", bEnableAtrac3plus);
sound->Set("VolumeBGM", iBGMVolume);
sound->Set("VolumeSFX", iSFXVolume);
sound->Set("LowLatency", bLowLatencyAudio);
IniFile::Section *control = iniFile.GetOrCreateSection("Control");
control->Set("ShowAnalogStick", bShowAnalogStick);