Browse Source

Fix build

tags/1.9.4
falkTX 11 years ago
parent
commit
f68eda6c13
4 changed files with 12 additions and 15 deletions
  1. +3
    -1
      source/backend/plugin/Lv2Plugin.cpp
  2. +4
    -4
      source/backend/plugin/VstPlugin.cpp
  3. +2
    -0
      source/bridges/CarlaBridgeUI-LV2.cpp
  4. +3
    -10
      source/discovery/carla-discovery.cpp

+ 3
- 1
source/backend/plugin/Lv2Plugin.cpp View File

@@ -1060,7 +1060,7 @@ public:

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));

@@ -1068,6 +1068,8 @@ public:

if (fHandle2 != nullptr)
lilv_state_restore(state, fExt.state, fHandle2, carla_lilv_set_port_value, this, 0, fFeatures);

lilv_state_free(state);
}
}



+ 4
- 4
source/backend/plugin/VstPlugin.cpp View File

@@ -71,7 +71,7 @@ public:
carla_debug("VstPlugin::VstPlugin(%p, %i)", engine, id);

carla_zeroStruct<VstMidiEvent>(fMidiEvents, kPluginMaxMidiEvents*2);
carla_zeroStruct<VstTimeInfo_R>(fTimeInfo);
carla_zeroStruct<VstTimeInfo>(fTimeInfo);

for (ushort i=0; i < kPluginMaxMidiEvents*2; ++i)
fEvents.data[i] = (VstEvent*)&fMidiEvents[i];
@@ -2365,9 +2365,9 @@ private:

AEffect* fEffect;

uint32_t fMidiEventCount;
VstMidiEvent fMidiEvents[kPluginMaxMidiEvents*2];
VstTimeInfo_R fTimeInfo;
uint32_t fMidiEventCount;
VstMidiEvent fMidiEvents[kPluginMaxMidiEvents*2];
VstTimeInfo fTimeInfo;

bool fNeedIdle;
void* fLastChunk;


+ 2
- 0
source/bridges/CarlaBridgeUI-LV2.cpp View File

@@ -15,6 +15,8 @@
* For a full copy of the GNU General Public License see the GPL.txt file
*/

#undef HAVE_JUCE

#include "CarlaBridgeClient.hpp"
#include "CarlaLv2Utils.hpp"
#include "CarlaMIDI.h"


+ 3
- 10
source/discovery/carla-discovery.cpp View File

@@ -34,7 +34,7 @@
# include "CarlaLadspaUtils.hpp"
#endif
#ifdef WANT_DSSI
# include "CarlaDssiUtils.hpp"
# include "CarlaDssiUtils.cpp"
#endif
#ifdef WANT_LV2
# 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);

static VstTimeInfo_R timeInfo;
static VstTimeInfo timeInfo;
intptr_t ret = 0;

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 (! 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;

// Tempo
@@ -1920,10 +1920,3 @@ int main(int argc, char* argv[])
}

// --------------------------------------------------------------------------
// Extras

#ifdef WANT_DSSI
# include "CarlaDssiUtils.cpp"
#endif

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

Loading…
Cancel
Save