From 736d06ce3d0f556baf55518ff685f39989fc337d Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 29 Sep 2017 03:16:28 +0200 Subject: [PATCH] Allow to change volume and balance controls on jack apps --- source/backend/plugin/CarlaPluginJack.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/backend/plugin/CarlaPluginJack.cpp b/source/backend/plugin/CarlaPluginJack.cpp index 7b8b96752..58b5fd6a4 100644 --- a/source/backend/plugin/CarlaPluginJack.cpp +++ b/source/backend/plugin/CarlaPluginJack.cpp @@ -277,7 +277,7 @@ public: PluginCategory getCategory() const noexcept override { - return fInfo.category; + return PLUGIN_CATEGORY_NONE; } // ------------------------------------------------------------------- @@ -1290,6 +1290,14 @@ public: if (! restartBridgeThread()) return false; + // --------------------------------------------------------------- + // setup hints and options + + // FIXME dryWet broken + pData->hints = PLUGIN_IS_BRIDGE | /*PLUGIN_CAN_DRYWET |*/ PLUGIN_CAN_VOLUME | PLUGIN_CAN_BALANCE | PLUGIN_NEEDS_FIXED_BUFFERS; + pData->options = PLUGIN_OPTION_FIXED_BUFFERS; + //fInfo.optionsAvailable = optionAv; + // --------------------------------------------------------------- // register client @@ -1327,7 +1335,6 @@ private: struct Info { uint32_t aIns, aOuts; uint32_t mIns, mOuts; - PluginCategory category; uint optionsAvailable; CarlaString setupLabel; std::vector chunk; @@ -1337,7 +1344,6 @@ private: aOuts(0), mIns(0), mOuts(0), - category(PLUGIN_CATEGORY_NONE), optionsAvailable(0), setupLabel(), chunk() {}