summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorthfrwn <11335318+rfht@users.noreply.github.com>2018-08-25 00:46:36 -0700
committerthfrwn <11335318+rfht@users.noreply.github.com>2018-08-27 05:35:59 -0700
commitd37e9ef95ddc18b494524a3e560dc9a4c1ba9a8d (patch)
tree984ebf40e0a38f1bd0264c734f4081cdcfce3d1b /servers
parentf72f74486d3f07b2be0c6480c6c0d34edd47794f (diff)
log to console if falling back to dummy audio driver
Diffstat (limited to 'servers')
-rw-r--r--servers/audio_server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp
index b737f4681d..db178e0df8 100644
--- a/servers/audio_server.cpp
+++ b/servers/audio_server.cpp
@@ -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) {