Browse Source

Carla: Fix force-stereo logic check

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

+ 1
- 1
c++/carla-backend/carla_native.cpp View File

@@ -1661,7 +1661,7 @@ CarlaPlugin* CarlaPlugin::newNative(const initializer& init)

if (carlaOptions.processMode == PROCESS_MODE_CONTINUOUS_RACK)
{
if (! plugin->hints() & PLUGIN_CAN_FORCE_STEREO)
if (! (plugin->hints() & PLUGIN_CAN_FORCE_STEREO))
{
setLastError("Carla's rack mode can only work with Mono or Stereo Internal plugins, sorry!");
delete plugin;


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

@@ -1558,17 +1558,17 @@ CarlaPlugin* CarlaPlugin::newDSSI(const initializer& init, const void* const ext

plugin->reload();

#ifndef BUILD_BRIDGE
# ifndef BUILD_BRIDGE
if (carlaOptions.processMode == PROCESS_MODE_CONTINUOUS_RACK)
{
if (! plugin->hints() & PLUGIN_CAN_FORCE_STEREO)
if (! (plugin->hints() & PLUGIN_CAN_FORCE_STEREO))
{
setLastError("Carla's rack mode can only work with Mono or Stereo DSSI plugins, sorry!");
delete plugin;
return nullptr;
}
}
#endif
# endif

plugin->registerToOscControl();



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

@@ -1163,17 +1163,17 @@ CarlaPlugin* CarlaPlugin::newLADSPA(const initializer& init, const void* const e

plugin->reload();

#ifndef BUILD_BRIDGE
# ifndef BUILD_BRIDGE
if (carlaOptions.processMode == PROCESS_MODE_CONTINUOUS_RACK)
{
if (! plugin->hints() & PLUGIN_CAN_FORCE_STEREO)
if (! (plugin->hints() & PLUGIN_CAN_FORCE_STEREO))
{
setLastError("Carla's rack mode can only work with Mono or Stereo LADSPA plugins, sorry!");
delete plugin;
return nullptr;
}
}
#endif
# endif

plugin->registerToOscControl();



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

@@ -4510,17 +4510,17 @@ CarlaPlugin* CarlaPlugin::newLV2(const initializer& init)

plugin->reload();

#ifndef BUILD_BRIDGE
# ifndef BUILD_BRIDGE
if (carlaOptions.processMode == PROCESS_MODE_CONTINUOUS_RACK)
{
if (! plugin->hints() & PLUGIN_CAN_FORCE_STEREO)
if (! (plugin->hints() & PLUGIN_CAN_FORCE_STEREO))
{
setLastError("Carla's rack mode can only work with Mono (simple) or Stereo LV2 plugins, sorry!");
delete plugin;
return nullptr;
}
}
#endif
# endif

plugin->registerToOscControl();
plugin->updateUi();


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

@@ -2308,17 +2308,17 @@ CarlaPlugin* CarlaPlugin::newVST(const initializer& init)

plugin->reload();

#ifndef BUILD_BRIDGE
# ifndef BUILD_BRIDGE
if (carlaOptions.processMode == PROCESS_MODE_CONTINUOUS_RACK)
{
if (! plugin->hints() & PLUGIN_CAN_FORCE_STEREO)
if (! (plugin->hints() & PLUGIN_CAN_FORCE_STEREO))
{
setLastError("Carla's rack mode can only work with Stereo VST plugins, sorry!");
delete plugin;
return nullptr;
}
}
#endif
# endif

plugin->registerToOscControl();



Loading…
Cancel
Save