From cd5896e555a916fa1c2b5e9e82c6bc374bb703af Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 13 Oct 2013 11:41:36 +0100 Subject: [PATCH] Add new PLUGIN_NEEDS_UI_JUCE flag, used in VexArp and VexSynth --- source/modules/CarlaNative.h | 9 +++++---- source/modules/carla_native/vex-fx.cpp | 2 +- source/modules/carla_native/vex-synth.cpp | 7 +------ 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/source/modules/CarlaNative.h b/source/modules/CarlaNative.h index d8459dc90..ec5d8ae08 100644 --- a/source/modules/CarlaNative.h +++ b/source/modules/CarlaNative.h @@ -57,10 +57,11 @@ typedef enum { PLUGIN_HAS_GUI = 1 << 2, PLUGIN_NEEDS_FIXED_BUFFERS = 1 << 3, PLUGIN_NEEDS_SINGLE_THREAD = 1 << 4, - PLUGIN_NEEDS_UI_OPEN_SAVE = 1 << 5, - PLUGIN_USES_PANNING = 1 << 6, // uses stereo balance if unset (default) - PLUGIN_USES_STATE = 1 << 7, - PLUGIN_USES_TIME = 1 << 8 + PLUGIN_NEEDS_UI_JUCE = 1 << 5, + PLUGIN_NEEDS_UI_OPEN_SAVE = 1 << 6, + PLUGIN_USES_PANNING = 1 << 7, // uses stereo balance if unset (default) + PLUGIN_USES_STATE = 1 << 8, + PLUGIN_USES_TIME = 1 << 9 } PluginHints; typedef enum { diff --git a/source/modules/carla_native/vex-fx.cpp b/source/modules/carla_native/vex-fx.cpp index f21a5410c..11e9ad911 100644 --- a/source/modules/carla_native/vex-fx.cpp +++ b/source/modules/carla_native/vex-fx.cpp @@ -863,7 +863,7 @@ private: static const PluginDescriptor vexArpDesc = { /* category */ PLUGIN_CATEGORY_UTILITY, - /* hints */ static_cast(PLUGIN_HAS_GUI|PLUGIN_NEEDS_SINGLE_THREAD|PLUGIN_USES_TIME), + /* hints */ static_cast(PLUGIN_HAS_GUI|PLUGIN_NEEDS_UI_JUCE|PLUGIN_USES_TIME), /* supports */ static_cast(PLUGIN_SUPPORTS_EVERYTHING), /* audioIns */ 0, /* audioOuts */ 0, diff --git a/source/modules/carla_native/vex-synth.cpp b/source/modules/carla_native/vex-synth.cpp index 6aa37e40e..c660d4779 100644 --- a/source/modules/carla_native/vex-synth.cpp +++ b/source/modules/carla_native/vex-synth.cpp @@ -1115,11 +1115,6 @@ protected: } } - void uiSetParameterValue(const uint32_t, const float) override - { - // unused - } - // ------------------------------------------------------------------- // Plugin state calls @@ -1290,7 +1285,7 @@ private: static const PluginDescriptor vexSynthDesc = { /* category */ PLUGIN_CATEGORY_SYNTH, - /* hints */ static_cast(PLUGIN_HAS_GUI|PLUGIN_NEEDS_SINGLE_THREAD|PLUGIN_USES_STATE|PLUGIN_USES_TIME), + /* hints */ static_cast(PLUGIN_HAS_GUI|PLUGIN_NEEDS_UI_JUCE|PLUGIN_USES_STATE|PLUGIN_USES_TIME), /* supports */ static_cast(0x0), /* audioIns */ 0, /* audioOuts */ 2,