Browse Source

Export 32chan version of carla-patchbay vst plugin

tags/v1.9.9
falkTX 6 years ago
parent
commit
3ea17b4611
2 changed files with 27 additions and 5 deletions
  1. +11
    -0
      source/plugin/Makefile
  2. +16
    -5
      source/plugin/carla-vst.cpp

+ 11
- 0
source/plugin/Makefile View File

@@ -101,6 +101,7 @@ TARGETS += \
$(BINDIR)/CarlaRackFX$(LIB_EXT) \
$(BINDIR)/CarlaPatchbay$(LIB_EXT) \
$(BINDIR)/CarlaPatchbay16$(LIB_EXT) \
$(BINDIR)/CarlaPatchbay32$(LIB_EXT) \
$(BINDIR)/CarlaPatchbayFX$(LIB_EXT)
endif
endif
@@ -147,6 +148,11 @@ $(BINDIR)/CarlaPatchbay16$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn16.o $(
@echo "Linking CarlaPatchbay16$(LIB_EXT)"
@$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(LINK_FLAGS) -o $@

$(BINDIR)/CarlaPatchbay32$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn32.o $(LIBS)
-@mkdir -p $(BINDIR)
@echo "Linking CarlaPatchbay32$(LIB_EXT)"
@$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(LINK_FLAGS) -o $@

$(BINDIR)/CarlaPatchbayFX$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-fx.o $(LIBS)
-@mkdir -p $(BINDIR)
@echo "Linking CarlaPatchbayFX$(LIB_EXT)"
@@ -184,6 +190,11 @@ $(OBJDIR)/carla-vst.cpp.patchbay-syn16.o: carla-vst.cpp
@echo "Compiling $< (PatchbaySynth 16ch)"
@$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_16CH -c -o $@

$(OBJDIR)/carla-vst.cpp.patchbay-syn32.o: carla-vst.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $< (PatchbaySynth 32ch)"
@$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_32CH -c -o $@

# ----------------------------------------------------------------------------------------------------------------------------

$(BINDIR)/carla.lv2/manifest.ttl: $(OBJDIR)/carla-lv2-export.cpp.o $(LIBS)


+ 16
- 5
source/plugin/carla-vst.cpp View File

@@ -734,7 +734,9 @@ static intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t

const NativePluginDescriptor* pluginDesc = nullptr;
#if CARLA_PLUGIN_PATCHBAY
# ifdef CARLA_PLUGIN_16CH
# if defined(CARLA_PLUGIN_32CH)
const char* const pluginLabel = "carlapatchbay32";
# elif defined(CARLA_PLUGIN_16CH)
const char* const pluginLabel = "carlapatchbay16";
# else
const char* const pluginLabel = "carlapatchbay";
@@ -800,7 +802,9 @@ static intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t
{
#if CARLA_PLUGIN_PATCHBAY
# if CARLA_PLUGIN_SYNTH
# ifdef CARLA_PLUGIN_16CH
# if defined(CARLA_PLUGIN_32CH)
std::strncpy(cptr, "Carla-Patchbay32", 32);
# elif defined(CARLA_PLUGIN_16CH)
std::strncpy(cptr, "Carla-Patchbay16", 32);
# else
std::strncpy(cptr, "Carla-Patchbay", 32);
@@ -832,7 +836,9 @@ static intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t
{
#if CARLA_PLUGIN_PATCHBAY
# if CARLA_PLUGIN_SYNTH
# ifdef CARLA_PLUGIN_16CH
# if defined(CARLA_PLUGIN_32CH)
std::strncpy(cptr, "CarlaPatchbay32", 32);
# elif defined(CARLA_PLUGIN_16CH)
std::strncpy(cptr, "CarlaPatchbay16", 32);
# else
std::strncpy(cptr, "CarlaPatchbay", 32);
@@ -922,7 +928,9 @@ const AEffect* VSTPluginMain(audioMasterCallback audioMaster)
static const int32_t uniqueId = CCONST('C', 'r', 'l', 'a');
#if CARLA_PLUGIN_SYNTH
# if CARLA_PLUGIN_PATCHBAY
# ifdef CARLA_PLUGIN_16CH
# if defined(CARLA_PLUGIN_32CH)
effect->uniqueID = uniqueId+6;
# elif defined(CARLA_PLUGIN_16CH)
effect->uniqueID = uniqueId+5;
# else
effect->uniqueID = uniqueId+4;
@@ -941,7 +949,10 @@ const AEffect* VSTPluginMain(audioMasterCallback audioMaster)
// plugin fields
effect->numParams = 0;
effect->numPrograms = 0;
#ifdef CARLA_PLUGIN_16CH
#if defined(CARLA_PLUGIN_32CH)
effect->numInputs = 32;
effect->numOutputs = 32;
#elif defined(CARLA_PLUGIN_16CH)
effect->numInputs = 16;
effect->numOutputs = 16;
#else


Loading…
Cancel
Save