Browse Source

Add PLUGIN_USES_MULTI_PROGS to native hints; some comments

tags/1.9.4
falkTX 11 years ago
parent
commit
2a9b40fdd5
2 changed files with 15 additions and 12 deletions
  1. +11
    -10
      source/modules/CarlaNative.h
  2. +4
    -2
      source/utils/CarlaPipeUtils.hpp

+ 11
- 10
source/modules/CarlaNative.h View File

@@ -53,16 +53,17 @@ typedef enum {
} NativePluginCategory; } NativePluginCategory;


typedef enum { typedef enum {
PLUGIN_IS_RTSAFE = 1 << 0,
PLUGIN_IS_SYNTH = 1 << 1,
PLUGIN_HAS_UI = 1 << 2,
PLUGIN_NEEDS_FIXED_BUFFERS = 1 << 3,
PLUGIN_NEEDS_SINGLE_THREAD = 1 << 4,
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
PLUGIN_IS_RTSAFE = 1 << 0,
PLUGIN_IS_SYNTH = 1 << 1,
PLUGIN_HAS_UI = 1 << 2,
PLUGIN_NEEDS_FIXED_BUFFERS = 1 << 3,
PLUGIN_NEEDS_SINGLE_THREAD = 1 << 4,
PLUGIN_NEEDS_UI_JUCE = 1 << 5,
PLUGIN_NEEDS_UI_OPEN_SAVE = 1 << 6,
PLUGIN_USES_MULTI_PROGS = 1 << 7, // has 1 patch per midi channel
PLUGIN_USES_PANNING = 1 << 8, // uses stereo balance if unset (default)
PLUGIN_USES_STATE = 1 << 9,
PLUGIN_USES_TIME = 1 << 10
} NativePluginHints; } NativePluginHints;


typedef enum { typedef enum {


+ 4
- 2
source/utils/CarlaPipeUtils.hpp View File

@@ -45,7 +45,7 @@ protected:
{ {
carla_debug("CarlaPipeServer::CarlaPipeServer()"); carla_debug("CarlaPipeServer::CarlaPipeServer()");


fTmpBuf[0xff] = '\0';
carla_zeroChar(fTmpBuf, 0xff+1);
} }


// ------------------------------------------------------------------- // -------------------------------------------------------------------
@@ -474,12 +474,14 @@ public:
// ------------------------------------------------------------------- // -------------------------------------------------------------------


protected: protected:
// to possibly send errors somewhere
virtual void fail(const char* const error) virtual void fail(const char* const error)
{ {
carla_stderr2(error); carla_stderr2(error);
} }


virtual void msgReceived(const char* const msg) = 0;
// returns true if msg handled
virtual bool msgReceived(const char* const msg) = 0;


// ------------------------------------------------------------------- // -------------------------------------------------------------------




Loading…
Cancel
Save