@@ -1318,13 +1318,15 @@ void CarlaPlugin::setActive(const bool active, const bool sendOsc, const bool se | |||||
const float value = active ? 1.0f : 0.0f; | const float value = active ? 1.0f : 0.0f; | ||||
# if defined(HAVE_LIBLO) && ! defined(BUILD_BRIDGE) | |||||
#if defined(HAVE_LIBLO) && ! defined(BUILD_BRIDGE) | |||||
if (sendOsc && pData->engine->isOscControlRegistered()) | if (sendOsc && pData->engine->isOscControlRegistered()) | ||||
pData->engine->oscSend_control_set_parameter_value(pData->id, PARAMETER_ACTIVE, value); | pData->engine->oscSend_control_set_parameter_value(pData->id, PARAMETER_ACTIVE, value); | ||||
# endif | |||||
#endif | |||||
#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | |||||
if (sendCallback) | if (sendCallback) | ||||
pData->engine->callback(ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, pData->id, PARAMETER_ACTIVE, 0, value, nullptr); | pData->engine->callback(ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, pData->id, PARAMETER_ACTIVE, 0, value, nullptr); | ||||
#endif | |||||
} | } | ||||
#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | ||||
@@ -1534,13 +1536,15 @@ void CarlaPlugin::setCtrlChannel(const int8_t channel, const bool sendOsc, const | |||||
const float channelf = static_cast<float>(channel); | const float channelf = static_cast<float>(channel); | ||||
# if defined(HAVE_LIBLO) && ! defined(BUILD_BRIDGE) | |||||
#if defined(HAVE_LIBLO) && ! defined(BUILD_BRIDGE) | |||||
if (sendOsc && pData->engine->isOscControlRegistered()) | if (sendOsc && pData->engine->isOscControlRegistered()) | ||||
pData->engine->oscSend_control_set_parameter_value(pData->id, PARAMETER_CTRL_CHANNEL, channelf); | pData->engine->oscSend_control_set_parameter_value(pData->id, PARAMETER_CTRL_CHANNEL, channelf); | ||||
# endif | |||||
#endif | |||||
#ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | |||||
if (sendCallback) | if (sendCallback) | ||||
pData->engine->callback(ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, pData->id, PARAMETER_CTRL_CHANNEL, 0, channelf, nullptr); | pData->engine->callback(ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, pData->id, PARAMETER_CTRL_CHANNEL, 0, channelf, nullptr); | ||||
#endif | |||||
} | } | ||||
// ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
@@ -62,10 +62,6 @@ LIBS_win64 = $(MODULEDIR)/lilv.win64.a | |||||
LINK_FLAGS += $(LILV_LIBS) | LINK_FLAGS += $(LILV_LIBS) | ||||
LIBS_native += $(MODULEDIR)/water.files.a | LIBS_native += $(MODULEDIR)/water.files.a | ||||
LIBS_posix32 += $(MODULEDIR)/water.files.posix32.a | |||||
LIBS_posix64 += $(MODULEDIR)/water.files.posix64.a | |||||
LIBS_win32 += $(MODULEDIR)/water.files.win32.a | |||||
LIBS_win64 += $(MODULEDIR)/water.files.win64.a | |||||
LINK_FLAGS += $(WATER_LIBS) | LINK_FLAGS += $(WATER_LIBS) | ||||
LINK_FLAGS += $(LIBDL_LIBS) | LINK_FLAGS += $(LIBDL_LIBS) | ||||
@@ -26,7 +26,6 @@ | |||||
#endif | #endif | ||||
#include "CarlaLadspaUtils.hpp" | #include "CarlaLadspaUtils.hpp" | ||||
#include "CarlaDssiUtils.cpp" | |||||
#include "CarlaLv2Utils.hpp" | #include "CarlaLv2Utils.hpp" | ||||
#include "CarlaVstUtils.hpp" | #include "CarlaVstUtils.hpp" | ||||
@@ -40,11 +39,13 @@ | |||||
#include <iostream> | #include <iostream> | ||||
#include "water/files/File.h" | |||||
#include "water/text/StringArray.h" | |||||
#ifndef BUILD_BRIDGE | #ifndef BUILD_BRIDGE | ||||
# include "water/files/File.h" | |||||
# include "water/text/StringArray.h" | |||||
# include "CarlaDssiUtils.cpp" | |||||
# include "../backend/utils/CachedPlugins.cpp" | # include "../backend/utils/CachedPlugins.cpp" | ||||
#else | |||||
# include "CarlaDssiUtils.hpp" | |||||
#endif | #endif | ||||
#define DISCOVERY_OUT(x, y) std::cout << "\ncarla-discovery::" << x << "::" << y << std::endl; | #define DISCOVERY_OUT(x, y) std::cout << "\ncarla-discovery::" << x << "::" << y << std::endl; | ||||
@@ -695,11 +696,13 @@ static void do_dssi_check(lib_t& libHandle, const char* const filename, const bo | |||||
if (midiIns > 0 && audioIns == 0 && audioOuts > 0) | if (midiIns > 0 && audioIns == 0 && audioOuts > 0) | ||||
hints |= PLUGIN_IS_SYNTH; | hints |= PLUGIN_IS_SYNTH; | ||||
#ifndef BUILD_BRIDGE | |||||
if (const char* const ui = find_dssi_ui(filename, ldescriptor->Label)) | if (const char* const ui = find_dssi_ui(filename, ldescriptor->Label)) | ||||
{ | { | ||||
hints |= PLUGIN_HAS_CUSTOM_UI; | hints |= PLUGIN_HAS_CUSTOM_UI; | ||||
delete[] ui; | delete[] ui; | ||||
} | } | ||||
#endif | |||||
if (doInit) | if (doInit) | ||||
{ | { | ||||
@@ -849,6 +852,7 @@ static void do_dssi_check(lib_t& libHandle, const char* const filename, const bo | |||||
} | } | ||||
} | } | ||||
#ifndef BUILD_BRIDGE | |||||
static void do_lv2_check(const char* const bundle, const bool doInit) | static void do_lv2_check(const char* const bundle, const bool doInit) | ||||
{ | { | ||||
Lv2WorldClass& lv2World(Lv2WorldClass::getInstance()); | Lv2WorldClass& lv2World(Lv2WorldClass::getInstance()); | ||||
@@ -931,6 +935,7 @@ static void do_lv2_check(const char* const bundle, const bool doInit) | |||||
print_cached_plugin(get_cached_plugin_lv2(lv2World, lilvPlugin)); | print_cached_plugin(get_cached_plugin_lv2(lv2World, lilvPlugin)); | ||||
} | } | ||||
} | } | ||||
#endif | |||||
static void do_vst_check(lib_t& libHandle, const char* const filename, const bool doInit) | static void do_vst_check(lib_t& libHandle, const char* const filename, const bool doInit) | ||||
{ | { | ||||
@@ -1436,9 +1441,11 @@ int main(int argc, char* argv[]) | |||||
case PLUGIN_DSSI: | case PLUGIN_DSSI: | ||||
do_dssi_check(handle, filename, doInit); | do_dssi_check(handle, filename, doInit); | ||||
break; | break; | ||||
#ifndef BUILD_BRIDGE | |||||
case PLUGIN_LV2: | case PLUGIN_LV2: | ||||
do_lv2_check(filename, doInit); | do_lv2_check(filename, doInit); | ||||
break; | break; | ||||
#endif | |||||
case PLUGIN_VST2: | case PLUGIN_VST2: | ||||
do_vst_check(handle, filename, doInit); | do_vst_check(handle, filename, doInit); | ||||
break; | break; | ||||