|
@@ -64,6 +64,7 @@ public: |
|
|
fNeedIdle(false), |
|
|
fNeedIdle(false), |
|
|
fLastChunk(nullptr), |
|
|
fLastChunk(nullptr), |
|
|
fIsProcessing(false), |
|
|
fIsProcessing(false), |
|
|
|
|
|
fMainThread(pthread_self()), |
|
|
#ifdef PTW32_DLLPORT |
|
|
#ifdef PTW32_DLLPORT |
|
|
fProcThread({nullptr, 0}), |
|
|
fProcThread({nullptr, 0}), |
|
|
#else |
|
|
#else |
|
@@ -82,13 +83,6 @@ public: |
|
|
for (ushort i=0; i < kPluginMaxMidiEvents*2; ++i) |
|
|
for (ushort i=0; i < kPluginMaxMidiEvents*2; ++i) |
|
|
fEvents.data[i] = (VstEvent*)&fMidiEvents[i]; |
|
|
fEvents.data[i] = (VstEvent*)&fMidiEvents[i]; |
|
|
|
|
|
|
|
|
#ifdef CARLA_OS_WIN |
|
|
|
|
|
fProcThread.p = nullptr; |
|
|
|
|
|
fProcThread.x = 0; |
|
|
|
|
|
#else |
|
|
|
|
|
fProcThread = 0; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// make plugin valid |
|
|
// make plugin valid |
|
|
srand(id); |
|
|
srand(id); |
|
|
fUnique1 = fUnique2 = rand(); |
|
|
fUnique1 = fUnique2 = rand(); |
|
@@ -1733,8 +1727,13 @@ protected: |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case audioMasterIdle: |
|
|
case audioMasterIdle: |
|
|
//pData->engine->callback(ENGINE_CALLBACK_IDLE, 0, 0, 0, 0.0f, nullptr); |
|
|
|
|
|
//pData->engine->idle(); |
|
|
|
|
|
|
|
|
if (pthread_equal(pthread_self(), fMainThread)) |
|
|
|
|
|
{ |
|
|
|
|
|
pData->engine->callback(ENGINE_CALLBACK_IDLE, 0, 0, 0, 0.0f, nullptr); |
|
|
|
|
|
|
|
|
|
|
|
if (pData->engine->getType() != kEngineTypePlugin) |
|
|
|
|
|
pData->engine->idle(); |
|
|
|
|
|
} |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
#if ! VST_FORCE_DEPRECATED |
|
|
#if ! VST_FORCE_DEPRECATED |
|
@@ -2219,6 +2218,7 @@ private: |
|
|
void* fLastChunk; |
|
|
void* fLastChunk; |
|
|
|
|
|
|
|
|
bool fIsProcessing; |
|
|
bool fIsProcessing; |
|
|
|
|
|
pthread_t fMainThread; |
|
|
pthread_t fProcThread; |
|
|
pthread_t fProcThread; |
|
|
|
|
|
|
|
|
struct FixedVstEvents { |
|
|
struct FixedVstEvents { |
|
@@ -2300,9 +2300,9 @@ private: |
|
|
if (std::strcmp(feature, "startStopProcess") == 0) |
|
|
if (std::strcmp(feature, "startStopProcess") == 0) |
|
|
return 1; |
|
|
return 1; |
|
|
if (std::strcmp(feature, "supportShell") == 0) |
|
|
if (std::strcmp(feature, "supportShell") == 0) |
|
|
return -1; |
|
|
|
|
|
|
|
|
return 1; |
|
|
if (std::strcmp(feature, "shellCategory") == 0) |
|
|
if (std::strcmp(feature, "shellCategory") == 0) |
|
|
return -1; |
|
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
|
// unimplemented |
|
|
// unimplemented |
|
|
carla_stderr("carla_vst_hostCanDo(\"%s\") - unknown feature", feature); |
|
|
carla_stderr("carla_vst_hostCanDo(\"%s\") - unknown feature", feature); |
|
|