Merge pull request #21400 from rfht/master
log to console if falling back to dummy audio driver
This commit is contained in:
commit
1fe6ad6a9d
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue