Browse Source

Prefer to run calf fluidsynth as bridge, requires instance access

tags/1.9.7
falkTX 7 years ago
parent
commit
da09cf0ea9
3 changed files with 4 additions and 2 deletions
  1. +2
    -0
      source/backend/engine/CarlaEngine.cpp
  2. +1
    -1
      source/backend/plugin/CarlaPluginLV2.cpp
  3. +1
    -1
      source/bridges-ui/CarlaBridgeUI-LV2.cpp

+ 2
- 0
source/backend/engine/CarlaEngine.cpp View File

@@ -426,6 +426,8 @@ bool CarlaEngine::addPlugin(const BinaryType btype, const PluginType ptype,
{
if (std::strcmp(label, "http://calf.sourceforge.net/plugins/Analyzer") == 0)
preferBridges = true;
if (std::strcmp(label, "http://calf.sourceforge.net/plugins/Fluidsynth") == 0)
preferBridges = true;
if (std::strcmp(label, "http://factorial.hu/plugins/lv2/ir") == 0)
preferBridges = true;
}


+ 1
- 1
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -4259,7 +4259,7 @@ public:
const std::string s_uri(uri);
const std::ptrdiff_t s_pos(std::find(fCustomURIDs.begin(), fCustomURIDs.end(), s_uri) - fCustomURIDs.begin());

if (s_pos <= 0 || s_pos >= UINT32_MAX)
if (s_pos <= 0 || s_pos >= INT32_MAX)
return CARLA_URI_MAP_ID_NULL;

const LV2_URID urid = static_cast<LV2_URID>(s_pos);


+ 1
- 1
source/bridges-ui/CarlaBridgeUI-LV2.cpp View File

@@ -648,7 +648,7 @@ public:
const std::string s_uri(uri);
const std::ptrdiff_t s_pos(std::find(fCustomURIDs.begin(), fCustomURIDs.end(), s_uri) - fCustomURIDs.begin());

if (s_pos <= 0 || s_pos >= UINT32_MAX)
if (s_pos <= 0 || s_pos >= INT32_MAX)
return CARLA_URI_MAP_ID_NULL;

const LV2_URID urid = static_cast<LV2_URID>(s_pos);


Loading…
Cancel
Save