소스 검색

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

Areloch 2 년 전
부모
커밋
2a390e98e9
2개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      Templates/BaseGame/game/data/UI/guis/optionsMenu.tscript
  2. 0 4
      Templates/BaseGame/game/data/defaults.tscript

+ 1 - 1
Templates/BaseGame/game/data/UI/guis/optionsMenu.tscript

@@ -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", "");

+ 0 - 4
Templates/BaseGame/game/data/defaults.tscript

@@ -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;