Merge pull request #21400 from rfht/master

log to console if falling back to dummy audio driver
This commit is contained in:
Rémi Verschelde 2018-08-27 18:03:52 +02:00 committed by GitHub
commit 1fe6ad6a9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {