Skip to content

Commit

Permalink
log to console if falling back to dummy audio driver
Browse files Browse the repository at this point in the history
  • Loading branch information
rfht committed Aug 27, 2018
1 parent f72f744 commit d37e9ef
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 d37e9ef

Please sign in to comment.