Skip to content

Commit

Permalink
Merge pull request #21400 from rfht/master
Browse files Browse the repository at this point in the history
log to console if falling back to dummy audio driver
  • Loading branch information
akien-mga authored Aug 27, 2018
2 parents 9df5dda + d37e9ef commit 1fe6ad6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion servers/audio_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1fe6ad6

Please sign in to comment.