Fix audio driver setup if the first driver fails.
This commit is contained in:
parent
f697ec2fe0
commit
8027a3f004
@ -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++) {
|
for(int i=0;i<AudioDriverManagerSW::get_driver_count();i++) {
|
||||||
if (i==p_audio_driver)
|
if (i==p_audio_driver)
|
||||||
continue;
|
continue;
|
||||||
|
AudioDriverManagerSW::get_driver(i)->set_singleton();
|
||||||
if (AudioDriverManagerSW::get_driver(i)->init()==OK) {
|
if (AudioDriverManagerSW::get_driver(i)->init()==OK) {
|
||||||
success=true;
|
success=true;
|
||||||
print_line("Audio Driver Failed: "+String(AudioDriverManagerSW::get_driver(p_audio_driver)->get_name()));
|
print_line("Audio Driver Failed: "+String(AudioDriverManagerSW::get_driver(p_audio_driver)->get_name()));
|
||||||
|
Loading…
Reference in New Issue
Block a user