diff options
author | Jari Ronkainen <ronchaine@gmail.com> | 2015-07-23 19:32:10 +0300 |
---|---|---|
committer | Jari Ronkainen <ronchaine@gmail.com> | 2015-07-23 19:32:10 +0300 |
commit | 8027a3f00489cd4a5a6d4c85d1ab943cfef1c9db (patch) | |
tree | 77dea03f3c8b0b500292f6c0c5147d62ced0c051 /platform/x11/os_x11.cpp | |
parent | f697ec2fe022583dde5f3ae650f49cfd7f237c33 (diff) |
Fix audio driver setup if the first driver fails.
Diffstat (limited to 'platform/x11/os_x11.cpp')
-rw-r--r-- | platform/x11/os_x11.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index f8c570a5c0..2f35cebee8 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -267,6 +267,7 @@ void OS_X11::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi for(int i=0;i<AudioDriverManagerSW::get_driver_count();i++) { if (i==p_audio_driver) continue; + AudioDriverManagerSW::get_driver(i)->set_singleton(); if (AudioDriverManagerSW::get_driver(i)->init()==OK) { success=true; print_line("Audio Driver Failed: "+String(AudioDriverManagerSW::get_driver(p_audio_driver)->get_name())); |