Fixes the issue of changing audio settings causing the SFX re-init'ing to fail

This commit is contained in:
Areloch 2023-09-10 18:47:27 -05:00
parent c7e2ce6654
commit 2a390e98e9
2 changed files with 1 additions and 5 deletions

View file

@ -685,7 +685,7 @@ function populateAudioSettingsList()
}
}
OptionsMenuSettingsList.addOptionRow("Audio Provider", "$pref::SFX::AudioProvider", %audioProviderList, false, "audioProviderChanged", true, "");
OptionsMenuSettingsList.addOptionRow("Audio Provider", "$pref::SFX::provider", %audioProviderList, false, "audioProviderChanged", true, "");
OptionsMenuSettingsList.addOptionRow("Audio Device", "$pref::SFX::device", %audioDeviceList, false, "", true);
OptionsMenuSettingsList.addSliderRow("Master Volume", "$pref::SFX::masterVolume", 0.1, "0 1", "");

View file

@ -82,10 +82,6 @@ $pref::SFX::autoDetect = true;
/// plays no sound.
$pref::SFX::provider = "OpenAL";
/// The sound device to select from the provider. Each
/// provider may have several different devices.
$pref::SFX::device = "OpenAL Soft";
/// If true the device will try to use hardware buffers
/// and sound mixing. If not it will use software.
$pref::SFX::useHardware = false;