| @@ -225,6 +225,14 @@ struct CarlaEngineProtectedData { | |||||
| CARLA_DECLARE_NON_COPY_STRUCT(CarlaEngineProtectedData) | CARLA_DECLARE_NON_COPY_STRUCT(CarlaEngineProtectedData) | ||||
| #endif | #endif | ||||
| ~CarlaEngineProtectedData() | |||||
| { | |||||
| CARLA_ASSERT(curPluginCount == 0); | |||||
| CARLA_ASSERT(maxPluginNumber == 0); | |||||
| CARLA_ASSERT(nextPluginId == 0); | |||||
| CARLA_ASSERT(plugins == nullptr); | |||||
| } | |||||
| void doPluginRemove() | void doPluginRemove() | ||||
| { | { | ||||
| CARLA_ASSERT(curPluginCount > 0); | CARLA_ASSERT(curPluginCount > 0); | ||||
| @@ -323,7 +331,7 @@ struct CarlaEngineProtectedData { | |||||
| if (lockWait) | if (lockWait) | ||||
| { | { | ||||
| // block wait for unlock on proccessing side | |||||
| // block wait for unlock on processing side | |||||
| carla_stdout("ScopedPluginAction(%i) - blocking START", pluginId); | carla_stdout("ScopedPluginAction(%i) - blocking START", pluginId); | ||||
| fData->nextAction.mutex.lock(); | fData->nextAction.mutex.lock(); | ||||
| carla_stdout("ScopedPluginAction(%i) - blocking DONE", pluginId); | carla_stdout("ScopedPluginAction(%i) - blocking DONE", pluginId); | ||||
| @@ -93,7 +93,7 @@ public: | |||||
| // ------------------------------------------------------------------- | // ------------------------------------------------------------------- | ||||
| private: | private: | ||||
| CarlaEngine* const kEngine; | |||||
| CarlaEngine* const fEngine; | |||||
| CarlaString fName; | CarlaString fName; | ||||
| @@ -38,7 +38,7 @@ CARLA_BACKEND_START_NAMESPACE | |||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| const unsigned short MAX_MIDI_EVENTS = 512; | |||||
| const unsigned short kPluginMaxMidiEvents = 512; | |||||
| const unsigned int PLUGIN_HINT_HAS_MIDI_IN = 0x1; | const unsigned int PLUGIN_HINT_HAS_MIDI_IN = 0x1; | ||||
| const unsigned int PLUGIN_HINT_HAS_MIDI_OUT = 0x2; | const unsigned int PLUGIN_HINT_HAS_MIDI_OUT = 0x2; | ||||
| @@ -634,10 +634,8 @@ struct CarlaPluginProtectedData { | |||||
| #ifdef CARLA_PROPER_CPP11_SUPPORT | #ifdef CARLA_PROPER_CPP11_SUPPORT | ||||
| CarlaPluginProtectedData() = delete; | CarlaPluginProtectedData() = delete; | ||||
| CarlaPluginProtectedData(CarlaPluginProtectedData&) = delete; | |||||
| CarlaPluginProtectedData(const CarlaPluginProtectedData&) = delete; | |||||
| CARLA_DECLARE_NON_COPY_STRUCT(CarlaPluginProtectedData) | |||||
| #endif | #endif | ||||
| CARLA_LEAK_DETECTOR(CarlaPluginProtectedData) | |||||
| ~CarlaPluginProtectedData() | ~CarlaPluginProtectedData() | ||||
| { | { | ||||
| @@ -29,6 +29,8 @@ CARLA_BACKEND_START_NAMESPACE | |||||
| } // Fix editor indentation | } // Fix editor indentation | ||||
| #endif | #endif | ||||
| // ----------------------------------------------------------------------- | |||||
| class CarlaPluginThread : public Thread | class CarlaPluginThread : public Thread | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -61,6 +63,8 @@ private: | |||||
| CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaPluginThread) | CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaPluginThread) | ||||
| }; | }; | ||||
| // ----------------------------------------------------------------------- | |||||
| CARLA_BACKEND_END_NAMESPACE | CARLA_BACKEND_END_NAMESPACE | ||||
| #endif // CARLA_PLUGIN_THREAD_HPP_INCLUDED | #endif // CARLA_PLUGIN_THREAD_HPP_INCLUDED | ||||
| @@ -250,7 +250,7 @@ void writePluginFile(const PluginDescriptor* const pluginDesc) | |||||
| text += " lv2:requiredFeature <" LV2_BUF_SIZE__boundedBlockLength "> ,\n"; | text += " lv2:requiredFeature <" LV2_BUF_SIZE__boundedBlockLength "> ,\n"; | ||||
| if (pluginDesc->hints & PLUGIN_NEEDS_STATIC_BUFFERS) | |||||
| if (pluginDesc->hints & PLUGIN_NEEDS_FIXED_BUFFERS) | |||||
| text += " <" LV2_BUF_SIZE__fixedBlockLength "> ,\n"; | text += " <" LV2_BUF_SIZE__fixedBlockLength "> ,\n"; | ||||
| text += " <" LV2_OPTIONS__options "> ,\n"; | text += " <" LV2_OPTIONS__options "> ,\n"; | ||||