From d37e9ef95ddc18b494524a3e560dc9a4c1ba9a8d Mon Sep 17 00:00:00 2001 From: thfrwn <11335318+rfht@users.noreply.github.com> Date: Sat, 25 Aug 2018 00:46:36 -0700 Subject: [PATCH] log to console if falling back to dummy audio driver --- servers/audio_server.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index b737f4681d0..db178e0df8e 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) {