Fix crash when no audio driver is available
This commit is contained in:
committed by
marcelofg55
parent
d6b392825f
commit
7a4c0ff35e
@ -1081,12 +1081,7 @@ void OS_Windows::initialize(const VideoMode &p_desired, int p_video_driver, int
|
||||
|
||||
power_manager = memnew(PowerWindows);
|
||||
|
||||
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);
|
||||
|
||||
TRACKMOUSEEVENT tme;
|
||||
tme.cbSize = sizeof(TRACKMOUSEEVENT);
|
||||
|
||||
Reference in New Issue
Block a user