|
|
@@ -95,8 +95,10 @@ uint CarlaEngine::getDriverCount() |
|
|
|
|
|
|
|
uint count = 0; |
|
|
|
|
|
|
|
#ifndef STATIC_PLUGIN_TARGET |
|
|
|
if (jackbridge_is_ok()) |
|
|
|
count += 1; |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef BUILD_BRIDGE |
|
|
|
# ifdef USING_JUCE_AUDIO_DEVICES |
|
|
@@ -115,10 +117,12 @@ const char* CarlaEngine::getDriverName(const uint index2) |
|
|
|
carla_debug("CarlaEngine::getDriverName(%i)", index2); |
|
|
|
using namespace EngineInit; |
|
|
|
|
|
|
|
#ifndef STATIC_PLUGIN_TARGET |
|
|
|
uint index = index2; |
|
|
|
|
|
|
|
if (jackbridge_is_ok() && index-- == 0) |
|
|
|
return "JACK"; |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef BUILD_BRIDGE |
|
|
|
# ifdef USING_JUCE_AUDIO_DEVICES |
|
|
@@ -147,6 +151,7 @@ const char* const* CarlaEngine::getDriverDeviceNames(const uint index2) |
|
|
|
carla_debug("CarlaEngine::getDriverDeviceNames(%i)", index2); |
|
|
|
using namespace EngineInit; |
|
|
|
|
|
|
|
#ifndef STATIC_PLUGIN_TARGET |
|
|
|
uint index = index2; |
|
|
|
|
|
|
|
if (jackbridge_is_ok() && index-- == 0) |
|
|
@@ -154,6 +159,7 @@ const char* const* CarlaEngine::getDriverDeviceNames(const uint index2) |
|
|
|
static const char* ret[3] = { "Auto-Connect ON", "Auto-Connect OFF", nullptr }; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef BUILD_BRIDGE |
|
|
|
# ifdef USING_JUCE_AUDIO_DEVICES |
|
|
@@ -182,6 +188,7 @@ const EngineDriverDeviceInfo* CarlaEngine::getDriverDeviceInfo(const uint index2 |
|
|
|
carla_debug("CarlaEngine::getDriverDeviceInfo(%i, \"%s\")", index2, deviceName); |
|
|
|
using namespace EngineInit; |
|
|
|
|
|
|
|
#ifndef STATIC_PLUGIN_TARGET |
|
|
|
uint index = index2; |
|
|
|
|
|
|
|
if (jackbridge_is_ok() && index-- == 0) |
|
|
@@ -192,6 +199,7 @@ const EngineDriverDeviceInfo* CarlaEngine::getDriverDeviceInfo(const uint index2 |
|
|
|
devInfo.sampleRates = nullptr; |
|
|
|
return &devInfo; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef BUILD_BRIDGE |
|
|
|
# ifdef USING_JUCE_AUDIO_DEVICES |
|
|
@@ -220,12 +228,14 @@ bool CarlaEngine::showDriverDeviceControlPanel(const uint index2, const char* co |
|
|
|
carla_debug("CarlaEngine::showDriverDeviceControlPanel(%i, \"%s\")", index2, deviceName); |
|
|
|
using namespace EngineInit; |
|
|
|
|
|
|
|
#ifndef STATIC_PLUGIN_TARGET |
|
|
|
uint index = index2; |
|
|
|
|
|
|
|
if (jackbridge_is_ok() && index-- == 0) |
|
|
|
{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef BUILD_BRIDGE |
|
|
|
# ifdef USING_JUCE_AUDIO_DEVICES |
|
|
|