Browse Source

Enable carla-patchbay plugin (but doesn't work fully yet)

tags/1.9.5
falkTX 10 years ago
parent
commit
79466979c1
4 changed files with 10 additions and 6 deletions
  1. +3
    -0
      Makefile
  2. +5
    -5
      source/backend/engine/CarlaEngineNative.cpp
  3. +1
    -1
      source/modules/native-plugins/resources/carla-plugin
  4. +1
    -0
      source/modules/native-plugins/resources/carla-plugin-patchbay

+ 3
- 0
Makefile View File

@@ -253,6 +253,7 @@ RES = \
bin/resources/carla_config.py \
bin/resources/carla_database.py \
bin/resources/carla_host.py \
bin/resources/carla_patchbay.py \
bin/resources/carla_rack.py \
bin/resources/carla_settings.py \
bin/resources/carla_skin.py \
@@ -489,6 +490,7 @@ install:
# Install resources (main)
install -m 755 \
bin/resources/carla-plugin \
bin/resources/carla-plugin-patchbay \
bin/resources/*-ui \
$(DESTDIR)$(PREFIX)/share/carla/resources/

@@ -505,6 +507,7 @@ install:
$(LINK) $(PREFIX)/share/carla/carla_config.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_database.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_host.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_patchbay.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_rack.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_settings.py $(DESTDIR)$(PREFIX)/share/carla/resources/
$(LINK) $(PREFIX)/share/carla/carla_skin.py $(DESTDIR)$(PREFIX)/share/carla/resources/


+ 5
- 5
source/backend/engine/CarlaEngineNative.cpp View File

@@ -1214,7 +1214,11 @@ protected:
return;

CarlaString path(pHost->resourceDir);
path += "/carla-plugin";

if (fIsPatchbay)
path += "/carla-plugin-patchbay";
else
path += "/carla-plugin";

carla_stdout("Trying to start carla-plugin using \"%s\"", path.buffer());

@@ -1587,7 +1591,6 @@ static const NativePluginDescriptor carlaRackDesc = {
CarlaEngineNative::_dispatcher
};

#if 0
static const NativePluginDescriptor carlaPatchbayDesc = {
/* category */ ::PLUGIN_CATEGORY_OTHER,
/* hints */ static_cast<NativePluginHints>(::PLUGIN_IS_SYNTH|::PLUGIN_HAS_UI|::PLUGIN_NEEDS_FIXED_BUFFERS|::PLUGIN_NEEDS_SINGLE_THREAD|::PLUGIN_USES_STATE|::PLUGIN_USES_TIME),
@@ -1625,7 +1628,6 @@ static const NativePluginDescriptor carlaPatchbayDesc = {
CarlaEngineNative::_set_state,
CarlaEngineNative::_dispatcher
};
#endif

CARLA_BACKEND_END_NAMESPACE

@@ -1638,9 +1640,7 @@ void carla_register_native_plugin_carla()
{
CARLA_BACKEND_USE_NAMESPACE;
carla_register_native_plugin(&carlaRackDesc);
#if 0
carla_register_native_plugin(&carlaPatchbayDesc);
#endif
}

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


+ 1
- 1
source/modules/native-plugins/resources/carla-plugin View File

@@ -520,7 +520,7 @@ class CarlaMiniW(ExternalUI, HostWindow):
ExternalUI.__init__(self)
HostWindow.__init__(self, None)

if False:
if sys.argv[0].lower().endswith("/carla-plugin-patchbay"):
from carla_patchbay import CarlaPatchbayW
self.fContainer = CarlaPatchbayW(self)
else:


+ 1
- 0
source/modules/native-plugins/resources/carla-plugin-patchbay View File

@@ -0,0 +1 @@
carla-plugin

Loading…
Cancel
Save