From 8027a3f00489cd4a5a6d4c85d1ab943cfef1c9db Mon Sep 17 00:00:00 2001 From: Jari Ronkainen Date: Thu, 23 Jul 2015 19:32:10 +0300 Subject: Fix audio driver setup if the first driver fails. --- platform/x11/os_x11.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/x11') 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;iset_singleton(); if (AudioDriverManagerSW::get_driver(i)->init()==OK) { success=true; print_line("Audio Driver Failed: "+String(AudioDriverManagerSW::get_driver(p_audio_driver)->get_name())); -- cgit v1.2.3 From 983fd0dfc3d9bb9c99ebbbd6dd9d312561980ecb Mon Sep 17 00:00:00 2001 From: Jari Ronkainen Date: Thu, 23 Jul 2015 19:35:47 +0300 Subject: Use tabs instead of spaces. --- platform/x11/os_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/x11') diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 2f35cebee8..b34d1ba7c8 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -267,7 +267,7 @@ void OS_X11::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi for(int i=0;iset_singleton(); + 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())); -- cgit v1.2.3