| @@ -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 { | ||||
| @@ -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; | |||||
| // ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||