From 7a4c0ff35e10fba5f2686e7fd5623eab31b07a2d Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Wed, 13 Sep 2017 13:34:22 -0300 Subject: Fix crash when no audio driver is available --- platform/uwp/os_uwp.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'platform/uwp') diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 3a8932aae2..920bc9fe36 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -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); -- cgit v1.2.3