From f392384c0e71518a7021e10c65149ac05e3ac920 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 6 Jul 2013 07:27:43 +0100 Subject: [PATCH] Fix build --- source/backend/engine/CarlaEngineNative.cpp | 3 ++- source/backend/plugin/NativePlugin.cpp | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/source/backend/engine/CarlaEngineNative.cpp b/source/backend/engine/CarlaEngineNative.cpp index 640093de7..6ef4b524e 100644 --- a/source/backend/engine/CarlaEngineNative.cpp +++ b/source/backend/engine/CarlaEngineNative.cpp @@ -591,7 +591,7 @@ protected: case CarlaEngineNativeThread::UiShow: break; case CarlaEngineNativeThread::UiCrashed: - hostDispatcher(HOST_OPCODE_UI_UNAVAILABLE, 0, 0, nullptr); + hostDispatcher(HOST_OPCODE_UI_UNAVAILABLE, 0, 0, nullptr, 0.0f); break; case CarlaEngineNativeThread::UiHide: uiClosed(); @@ -737,6 +737,7 @@ private: static const PluginDescriptor carlaDesc = { /* category */ ::PLUGIN_CATEGORY_OTHER, /* hints */ static_cast< ::PluginHints>(::PLUGIN_IS_SYNTH|::PLUGIN_HAS_GUI|::PLUGIN_USES_SINGLE_THREAD|::PLUGIN_USES_STATE), + /* supports */ static_cast(PLUGIN_SUPPORTS_EVERYTHING), /* audioIns */ 2, /* audioOuts */ 2, /* midiIns */ 1, diff --git a/source/backend/plugin/NativePlugin.cpp b/source/backend/plugin/NativePlugin.cpp index 747cd2232..49b83b35f 100644 --- a/source/backend/plugin/NativePlugin.cpp +++ b/source/backend/plugin/NativePlugin.cpp @@ -17,8 +17,6 @@ #include "CarlaPluginInternal.hpp" -#define WANT_NATIVE - #ifdef WANT_NATIVE #include "CarlaNative.h" @@ -2157,6 +2155,14 @@ protected: { case ::HOST_OPCODE_NULL: break; +#ifdef BUILD_BRIDGE + case ::HOST_OPCODE_SET_VOLUME: + case ::HOST_OPCODE_SET_DRYWET: + case ::HOST_OPCODE_SET_BALANCE_LEFT: + case ::HOST_OPCODE_SET_BALANCE_RIGHT: + case ::HOST_OPCODE_SET_PANNING: + break; +#else case ::HOST_OPCODE_SET_VOLUME: setVolume(opt, true, true); break; @@ -2172,6 +2178,7 @@ protected: case ::HOST_OPCODE_SET_PANNING: setPanning(opt, true, true); break; +#endif case ::HOST_OPCODE_SET_PROCESS_PRECISION: // TODO break;