Browse Source

Carla: Re-order some init calls for better handling bridge modes

tags/v0.9.0
falkTX 13 years ago
parent
commit
7b10ed3a8f
4 changed files with 35 additions and 35 deletions
  1. +11
    -11
      c++/carla-backend/dssi.cpp
  2. +11
    -11
      c++/carla-backend/ladspa.cpp
  3. +11
    -11
      c++/carla-backend/lv2.cpp
  4. +2
    -2
      c++/carla-backend/vst.cpp

+ 11
- 11
c++/carla-backend/dssi.cpp View File

@@ -1466,17 +1466,6 @@ public:
return false;
}

// ---------------------------------------------------------------
// initialize plugin

handle = ldescriptor->instantiate(ldescriptor, x_engine->getSampleRate());

if (! handle)
{
setLastError("Plugin failed to initialize");
return false;
}

// ---------------------------------------------------------------
// get info

@@ -1498,6 +1487,17 @@ public:
return false;
}

// ---------------------------------------------------------------
// initialize plugin

handle = ldescriptor->instantiate(ldescriptor, x_engine->getSampleRate());

if (! handle)
{
setLastError("Plugin failed to initialize");
return false;
}

// ---------------------------------------------------------------
// gui stuff



+ 11
- 11
c++/carla-backend/ladspa.cpp View File

@@ -1082,17 +1082,6 @@ public:
return false;
}

// ---------------------------------------------------------------
// initialize plugin

handle = descriptor->instantiate(descriptor, x_engine->getSampleRate());

if (! handle)
{
setLastError("Plugin failed to initialize");
return false;
}

// ---------------------------------------------------------------
// get info

@@ -1119,6 +1108,17 @@ public:
return false;
}

// ---------------------------------------------------------------
// initialize plugin

handle = descriptor->instantiate(descriptor, x_engine->getSampleRate());

if (! handle)
{
setLastError("Plugin failed to initialize");
return false;
}

return true;
}



+ 11
- 11
c++/carla-backend/lv2.cpp View File

@@ -4014,17 +4014,6 @@ public:
features[lv2_feature_id_worker]->URI = LV2_WORKER__schedule;
features[lv2_feature_id_worker]->data = workerFt;

// ---------------------------------------------------------------
// initialize plugin

handle = descriptor->instantiate(descriptor, x_engine->getSampleRate(), rdf_descriptor->Bundle, features);

if (! handle)
{
setLastError("Plugin failed to initialize");
return false;
}

// ---------------------------------------------------------------
// get info

@@ -4046,6 +4035,17 @@ public:
return false;
}

// ---------------------------------------------------------------
// initialize plugin

handle = descriptor->instantiate(descriptor, x_engine->getSampleRate(), rdf_descriptor->Bundle, features);

if (! handle)
{
setLastError("Plugin failed to initialize");
return false;
}

// ---------------------------------------------------------------
// gui stuff



+ 2
- 2
c++/carla-backend/vst.cpp View File

@@ -2145,7 +2145,7 @@ public:
}

// ---------------------------------------------------------------
// initialize plugin
// initialize plugin (part 1)

lastVstPlugin = this;
effect = vstFn(hostCallback);
@@ -2198,7 +2198,7 @@ public:
}

// ---------------------------------------------------------------
// initialize VST stuff
// initialize plugin (part 2)

#if ! VST_FORCE_DEPRECATED
effect->dispatcher(effect, effSetBlockSizeAndSampleRate, 0, x_engine->getBufferSize(), nullptr, x_engine->getSampleRate());


Loading…
Cancel
Save