You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Merge pull request #11252 from marcelofg55/fix_noaudio_crash
Fix crash when no audio driver is available
This commit is contained in:
@@ -268,12 +268,7 @@ void OSUWP::initialize(const VideoMode &p_desired, int p_video_driver, int p_aud
|
||||
joypad = ref new JoypadUWP(input);
|
||||
joypad->register_events();
|
||||
|
||||
AudioDriverManager::get_driver(p_audio_driver)->set_singleton();
|
||||
|
||||
if (AudioDriverManager::get_driver(p_audio_driver)->init() != OK) {
|
||||
|
||||
ERR_PRINT("Initializing audio failed.");
|
||||
}
|
||||
AudioDriverManager::initialize(p_audio_driver);
|
||||
|
||||
power_manager = memnew(PowerUWP);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user