Browse Source

Add PLUGIN_HAS_GUI_AS_FILE flag

tags/1.9.4
falkTX 12 years ago
parent
commit
0dd824d01e
7 changed files with 12 additions and 7 deletions
  1. +2
    -1
      source/backend/CarlaBackend.hpp
  2. +3
    -2
      source/backend/CarlaNative.h
  3. +1
    -1
      source/backend/native/audio-file.cpp
  4. +1
    -1
      source/backend/native/midi-file.cpp
  5. +1
    -1
      source/backend/native/sunvox-file.cpp
  6. +2
    -0
      source/backend/standalone/CarlaStandalone.cpp
  7. +2
    -1
      source/carla_backend.py

+ 2
- 1
source/backend/CarlaBackend.hpp View File

@@ -59,7 +59,8 @@ const unsigned int PLUGIN_IS_BRIDGE = 0x001; //!< Plugin is a bridge (ie
const unsigned int PLUGIN_IS_RTSAFE = 0x002; //!< Plugin is hard real-time safe.
const unsigned int PLUGIN_IS_SYNTH = 0x004; //!< Plugin is a synthesizer (produces sound).
const unsigned int PLUGIN_HAS_GUI = 0x010; //!< Plugin has its own custom GUI.
const unsigned int PLUGIN_HAS_SINGLE_THREAD = 0x020; //!< Plugin needs a single thread for both DSP and UI events.
const unsigned int PLUGIN_HAS_GUI_AS_FILE = 0x030; //!< Plugin has custom GUI as a single file.
const unsigned int PLUGIN_HAS_SINGLE_THREAD = 0x040; //!< Plugin needs a single thread for both DSP and UI events.
const unsigned int PLUGIN_CAN_DRYWET = 0x100; //!< Plugin can make use of Dry/Wet controls.
const unsigned int PLUGIN_CAN_VOLUME = 0x200; //!< Plugin can make use of Volume controls.
const unsigned int PLUGIN_CAN_BALANCE = 0x400; //!< Plugin can make use of Left & Right Balance controls.


+ 3
- 2
source/backend/CarlaNative.h View File

@@ -53,8 +53,9 @@ typedef enum _PluginHints {
PLUGIN_IS_RTSAFE = 1 << 0,
PLUGIN_IS_SYNTH = 1 << 1,
PLUGIN_HAS_GUI = 1 << 2,
PLUGIN_USES_SINGLE_THREAD = 1 << 3,
PLUGIN_USES_STATE = 1 << 4
PLUGIN_USES_GUI_AS_FILE = 1 << 3,
PLUGIN_USES_SINGLE_THREAD = 1 << 4,
PLUGIN_USES_STATE = 1 << 5
} PluginHints;

typedef enum _ParameterHints {


+ 1
- 1
source/backend/native/audio-file.cpp View File

@@ -245,7 +245,7 @@ private:

static const PluginDescriptor audiofileDesc = {
/* category */ PLUGIN_CATEGORY_UTILITY,
/* hints */ static_cast<PluginHints>(PLUGIN_IS_RTSAFE|PLUGIN_HAS_GUI),
/* hints */ static_cast<PluginHints>(PLUGIN_IS_RTSAFE|PLUGIN_HAS_GUI|PLUGIN_USES_GUI_AS_FILE),
/* audioIns */ 0,
/* audioOuts */ 2,
/* midiIns */ 0,


+ 1
- 1
source/backend/native/midi-file.cpp View File

@@ -220,7 +220,7 @@ private:

static const PluginDescriptor midifileDesc = {
/* category */ PLUGIN_CATEGORY_UTILITY,
/* hints */ static_cast<PluginHints>(PLUGIN_IS_RTSAFE|PLUGIN_HAS_GUI),
/* hints */ static_cast<PluginHints>(PLUGIN_IS_RTSAFE|PLUGIN_HAS_GUI|PLUGIN_USES_GUI_AS_FILE),
/* audioIns */ 0,
/* audioOuts */ 0,
/* midiIns */ 0,


+ 1
- 1
source/backend/native/sunvox-file.cpp View File

@@ -160,7 +160,7 @@ double SunVoxFilePlugin::sTicksPerFrame = 0.0;

static const PluginDescriptor sunvoxfileDesc = {
/* category */ PLUGIN_CATEGORY_UTILITY,
/* hints */ static_cast<PluginHints>(PLUGIN_HAS_GUI),
/* hints */ static_cast<PluginHints>(PLUGIN_HAS_GUI|PLUGIN_USES_GUI_AS_FILE),
/* audioIns */ 0,
/* audioOuts */ 2,
/* midiIns */ 0,


+ 2
- 0
source/backend/standalone/CarlaStandalone.cpp View File

@@ -445,6 +445,8 @@ const CarlaNativePluginInfo* carla_get_internal_plugin_info(unsigned int interna
info.hints |= CarlaBackend::PLUGIN_IS_SYNTH;
if (nativePlugin->hints & PLUGIN_HAS_GUI)
info.hints |= CarlaBackend::PLUGIN_HAS_GUI;
if (nativePlugin->hints & PLUGIN_USES_GUI_AS_FILE)
info.hints |= CarlaBackend::PLUGIN_HAS_GUI_AS_FILE;
if (nativePlugin->hints & PLUGIN_USES_SINGLE_THREAD)
info.hints |= CarlaBackend::PLUGIN_HAS_SINGLE_THREAD;



+ 2
- 1
source/carla_backend.py View File

@@ -97,7 +97,8 @@ PLUGIN_IS_BRIDGE = 0x001
PLUGIN_IS_RTSAFE = 0x002
PLUGIN_IS_SYNTH = 0x004
PLUGIN_HAS_GUI = 0x010
PLUGIN_HAS_SINGLE_THREAD = 0x020
PLUGIN_HAS_GUI_AS_FILE = 0x030
PLUGIN_HAS_SINGLE_THREAD = 0x040
PLUGIN_CAN_DRYWET = 0x100
PLUGIN_CAN_VOLUME = 0x200
PLUGIN_CAN_BALANCE = 0x400


Loading…
Cancel
Save