Browse Source

Find LV2 plugins using LV2_PATH first

Fixes #4

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 3 years ago
parent
commit
9032dd5ff5
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 21 additions and 7 deletions
  1. +1
    -1
      carla
  2. +1
    -1
      dpf
  3. +3
    -0
      plugins/Common/IldaeilPlugin.cpp
  4. +16
    -5
      plugins/Common/IldaeilUI.cpp

+ 1
- 1
carla

@@ -1 +1 @@
Subproject commit d6919785586228020e347bf24288b8317e0b24ef
Subproject commit 1edb1bb172fce8ae89cf666675ff531fc5dca628

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit e03017963d4e98cb898a6a1b435ad2ca5bccb537
Subproject commit 4c62f76915478d7cf6ac89cbc1c9714d1fbeb044

+ 3
- 0
plugins/Common/IldaeilPlugin.cpp View File

@@ -126,6 +126,9 @@ public:
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/usr/share/carla/resources");
#endif
if (const char* const path = std::getenv("LV2_PATH"))
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, PLUGIN_LV2, path);
fCarlaPluginDescriptor->dispatcher(fCarlaPluginHandle, NATIVE_PLUGIN_OPCODE_HOST_USES_EMBED,
0, 0, nullptr, 0.0f);


+ 16
- 5
plugins/Common/IldaeilUI.cpp View File

@@ -488,14 +488,25 @@ protected:

void run() override
{
/*
// TESTING
const char* const path = "/home/falktx/bin/reaper_linux_x86_64/REAPER/InstallData/Effects";
const char* path;

carla_set_engine_option(fPlugin->fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, fPluginType, path);
switch (fPluginType)
{
case PLUGIN_LV2:
path = std::getenv("LV2_PATH");
break;
default:
path = nullptr;
break;
}
/* TESTING
const char* const path = "/home/falktx/bin/reaper_linux_x86_64/REAPER/InstallData/Effects";
*/

if (const uint count = carla_get_cached_plugin_count(fPluginType, nullptr))
if (path != nullptr)
carla_set_engine_option(fPlugin->fCarlaHostHandle, ENGINE_OPTION_PLUGIN_PATH, fPluginType, path);

if (const uint count = carla_get_cached_plugin_count(fPluginType, path))
{
fPluginCount = 0;
fPlugins = new PluginInfoCache[count];


Loading…
Cancel
Save