| @@ -1060,7 +1060,7 @@ public: | |||||
| if (index >= 0 && index < static_cast<int32_t>(fRdfDescriptor->PresetCount)) | if (index >= 0 && index < static_cast<int32_t>(fRdfDescriptor->PresetCount)) | ||||
| { | { | ||||
| if (const LilvState* state = Lv2WorldClass::getInstance().getState(fRdfDescriptor->Presets[index].URI, (const LV2_URID_Map*)fFeatures[kFeatureIdUridMap]->data)) | |||||
| if (LilvState* const state = Lv2WorldClass::getInstance().getState(fRdfDescriptor->Presets[index].URI, (const LV2_URID_Map*)fFeatures[kFeatureIdUridMap]->data)) | |||||
| { | { | ||||
| const ScopedSingleProcessLocker spl(this, (sendGui || sendOsc || sendCallback)); | const ScopedSingleProcessLocker spl(this, (sendGui || sendOsc || sendCallback)); | ||||
| @@ -1068,6 +1068,8 @@ public: | |||||
| if (fHandle2 != nullptr) | if (fHandle2 != nullptr) | ||||
| lilv_state_restore(state, fExt.state, fHandle2, carla_lilv_set_port_value, this, 0, fFeatures); | lilv_state_restore(state, fExt.state, fHandle2, carla_lilv_set_port_value, this, 0, fFeatures); | ||||
| lilv_state_free(state); | |||||
| } | } | ||||
| } | } | ||||
| @@ -71,7 +71,7 @@ public: | |||||
| carla_debug("VstPlugin::VstPlugin(%p, %i)", engine, id); | carla_debug("VstPlugin::VstPlugin(%p, %i)", engine, id); | ||||
| carla_zeroStruct<VstMidiEvent>(fMidiEvents, kPluginMaxMidiEvents*2); | carla_zeroStruct<VstMidiEvent>(fMidiEvents, kPluginMaxMidiEvents*2); | ||||
| carla_zeroStruct<VstTimeInfo_R>(fTimeInfo); | |||||
| carla_zeroStruct<VstTimeInfo>(fTimeInfo); | |||||
| 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]; | ||||
| @@ -2365,9 +2365,9 @@ private: | |||||
| AEffect* fEffect; | AEffect* fEffect; | ||||
| uint32_t fMidiEventCount; | |||||
| VstMidiEvent fMidiEvents[kPluginMaxMidiEvents*2]; | |||||
| VstTimeInfo_R fTimeInfo; | |||||
| uint32_t fMidiEventCount; | |||||
| VstMidiEvent fMidiEvents[kPluginMaxMidiEvents*2]; | |||||
| VstTimeInfo fTimeInfo; | |||||
| bool fNeedIdle; | bool fNeedIdle; | ||||
| void* fLastChunk; | void* fLastChunk; | ||||
| @@ -15,6 +15,8 @@ | |||||
| * For a full copy of the GNU General Public License see the GPL.txt file | * For a full copy of the GNU General Public License see the GPL.txt file | ||||
| */ | */ | ||||
| #undef HAVE_JUCE | |||||
| #include "CarlaBridgeClient.hpp" | #include "CarlaBridgeClient.hpp" | ||||
| #include "CarlaLv2Utils.hpp" | #include "CarlaLv2Utils.hpp" | ||||
| #include "CarlaMIDI.h" | #include "CarlaMIDI.h" | ||||
| @@ -34,7 +34,7 @@ | |||||
| # include "CarlaLadspaUtils.hpp" | # include "CarlaLadspaUtils.hpp" | ||||
| #endif | #endif | ||||
| #ifdef WANT_DSSI | #ifdef WANT_DSSI | ||||
| # include "CarlaDssiUtils.hpp" | |||||
| # include "CarlaDssiUtils.cpp" | |||||
| #endif | #endif | ||||
| #ifdef WANT_LV2 | #ifdef WANT_LV2 | ||||
| # include "CarlaLv2Utils.hpp" | # include "CarlaLv2Utils.hpp" | ||||
| @@ -157,7 +157,7 @@ static intptr_t VSTCALLBACK vstHostCallback(AEffect* const effect, const int32_t | |||||
| { | { | ||||
| carla_debug("vstHostCallback(%p, %i:%s, %i, " P_INTPTR ", %p, %f)", effect, opcode, vstMasterOpcode2str(opcode), index, value, ptr, opt); | carla_debug("vstHostCallback(%p, %i:%s, %i, " P_INTPTR ", %p, %f)", effect, opcode, vstMasterOpcode2str(opcode), index, value, ptr, opt); | ||||
| static VstTimeInfo_R timeInfo; | |||||
| static VstTimeInfo timeInfo; | |||||
| intptr_t ret = 0; | intptr_t ret = 0; | ||||
| switch (opcode) | switch (opcode) | ||||
| @@ -187,7 +187,7 @@ static intptr_t VSTCALLBACK vstHostCallback(AEffect* const effect, const int32_t | |||||
| if (! gVstIsProcessing) DISCOVERY_OUT("warning", "plugin requested timeInfo out of process"); | if (! gVstIsProcessing) DISCOVERY_OUT("warning", "plugin requested timeInfo out of process"); | ||||
| if (! gVstWantsTime) DISCOVERY_OUT("warning", "plugin requested timeInfo but didn't ask if host could do \"sendVstTimeInfo\""); | if (! gVstWantsTime) DISCOVERY_OUT("warning", "plugin requested timeInfo but didn't ask if host could do \"sendVstTimeInfo\""); | ||||
| carla_zeroStruct<VstTimeInfo_R>(timeInfo); | |||||
| carla_zeroStruct<VstTimeInfo>(timeInfo); | |||||
| timeInfo.sampleRate = kSampleRate; | timeInfo.sampleRate = kSampleRate; | ||||
| // Tempo | // Tempo | ||||
| @@ -1920,10 +1920,3 @@ int main(int argc, char* argv[]) | |||||
| } | } | ||||
| // -------------------------------------------------------------------------- | // -------------------------------------------------------------------------- | ||||
| // Extras | |||||
| #ifdef WANT_DSSI | |||||
| # include "CarlaDssiUtils.cpp" | |||||
| #endif | |||||
| // -------------------------------------------------------------------------- | |||||