Browse Source

1 more try

tags/1.9.8
falkTX 7 years ago
parent
commit
6c102bbeb8
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      source/backend/engine/CarlaEngineRtAudio.cpp

+ 3
- 2
source/backend/engine/CarlaEngineRtAudio.cpp View File

@@ -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;


Loading…
Cancel
Save