log to console if falling back to dummy audio driver

This commit is contained in:
thfrwn 2018-08-25 00:46:36 -07:00
parent f72f74486d
commit d37e9ef95d
1 changed files with 5 additions and 1 deletions

View File

@ -185,9 +185,13 @@ void AudioDriverManager::initialize(int p_driver) {
if (drivers[i]->init() == OK) {
drivers[i]->set_singleton();
return;
break;
}
}
if (driver_count > 1 && AudioDriver::get_singleton()->get_name() == "Dummy") {
WARN_PRINT("All audio drivers failed, falling back to the dummy driver.");
}
}
AudioDriver *AudioDriverManager::get_driver(int p_driver) {