From 6c102bbeb86b4df622f28d256e3db6b2902ec05a Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 19 Nov 2017 13:26:54 +0100 Subject: [PATCH] 1 more try --- source/backend/engine/CarlaEngineRtAudio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/backend/engine/CarlaEngineRtAudio.cpp b/source/backend/engine/CarlaEngineRtAudio.cpp index c41647cd6..e312be27b 100644 --- a/source/backend/engine/CarlaEngineRtAudio.cpp +++ b/source/backend/engine/CarlaEngineRtAudio.cpp @@ -192,8 +192,9 @@ public: } const uint devCount(fAudio.getDeviceCount()); + const bool isDummy(fAudio.getCurrentApi() == RtAudio::RtAudio::RTAUDIO_DUMMY); - if (devCount == 0 && fAudio.getCurrentApi() != RtAudio::RtAudio::RTAUDIO_DUMMY) + if (devCount == 0 && ! isDummy) { setLastError("No audio devices available for this driver"); return false; @@ -231,7 +232,7 @@ public: carla_stdout("No device set, using %i inputs and %i outputs", iParams.nChannels, oParams.nChannels); } - if (oParams.nChannels == 0) + if (oParams.nChannels == 0 && ! isDummy) { setLastError("Current audio setup has no outputs, cannot continue"); return false;