Browse Source

More work, DSSI kinda working

tags/1.9.4
falkTX 12 years ago
parent
commit
2509b10d52
8 changed files with 708 additions and 711 deletions
  1. +1
    -1
      source/backend/Makefile.mk
  2. +1
    -1
      source/backend/carla_plugin.hpp
  3. +1
    -1
      source/backend/engine/carla_engine_osc.cpp
  4. +2
    -2
      source/backend/plugin/carla_plugin.cpp
  5. +2
    -2
      source/backend/plugin/carla_plugin.pro
  6. +8
    -7
      source/backend/plugin/carla_plugin_internal.hpp
  7. +690
    -690
      source/backend/plugin/dssi.cpp
  8. +3
    -7
      source/backend/plugin/ladspa.cpp

+ 1
- 1
source/backend/Makefile.mk View File

@@ -18,7 +18,7 @@ LINK_FLAGS += $(shell pkg-config --libs QtCore)
ifeq ($(CARLA_PLUGIN_SUPPORT),true) ifeq ($(CARLA_PLUGIN_SUPPORT),true)
# BUILD_C_FLAGS += -DWANT_LV2 # BUILD_C_FLAGS += -DWANT_LV2
# BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST # BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
BUILD_CXX_FLAGS += -DWANT_LADSPA
BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI
endif endif


ifeq ($(CARLA_RTAUDIO_SUPPORT),true) ifeq ($(CARLA_RTAUDIO_SUPPORT),true)


+ 1
- 1
source/backend/carla_plugin.hpp View File

@@ -690,7 +690,7 @@ public:
/*! /*!
* Tell the UI a parameter has changed. * Tell the UI a parameter has changed.
*/ */
virtual void uiParameterChange(const uint32_t index, const double value);
virtual void uiParameterChange(const uint32_t index, const float value);


/*! /*!
* Tell the UI the current program has changed. * Tell the UI the current program has changed.


+ 1
- 1
source/backend/engine/carla_engine_osc.cpp View File

@@ -436,7 +436,7 @@ int CarlaEngineOsc::handleMsgConfigure(CARLA_ENGINE_OSC_HANDLE_ARGS2)
const char* const value = (const char*)&argv[1]->s; const char* const value = (const char*)&argv[1]->s;


// FIXME // FIXME
plugin->setCustomData("CUSTOM_DATA_STRING", key, value, false);
plugin->setCustomData(CUSTOM_DATA_STRING, key, value, false);


return 0; return 0;
} }


+ 2
- 2
source/backend/plugin/carla_plugin.cpp View File

@@ -672,7 +672,7 @@ void CarlaPlugin::setCustomData(const char* const type, const char* const key, c
if (std::strcmp(type, CUSTOM_DATA_STRING) == 0) if (std::strcmp(type, CUSTOM_DATA_STRING) == 0)
{ {
// Ignore some keys // Ignore some keys
if (strncmp(key, "OSC:", 4) == 0 || std::strcmp(key, "guiVisible") == 0)
if (std::strncmp(key, "OSC:", 4) == 0 || std::strcmp(key, "guiVisible") == 0)
saveData = false; saveData = false;
//else if (strcmp(key, CARLA_BRIDGE_MSG_SAVE_NOW) == 0 || strcmp(key, CARLA_BRIDGE_MSG_SET_CHUNK) == 0 || strcmp(key, CARLA_BRIDGE_MSG_SET_CUSTOM) == 0) //else if (strcmp(key, CARLA_BRIDGE_MSG_SAVE_NOW) == 0 || strcmp(key, CARLA_BRIDGE_MSG_SET_CHUNK) == 0 || strcmp(key, CARLA_BRIDGE_MSG_SET_CUSTOM) == 0)
// saveData = false; // saveData = false;
@@ -1316,7 +1316,7 @@ void CarlaPlugin::postRtEventsRun()
} }
} }


void CarlaPlugin::uiParameterChange(const uint32_t index, const double value)
void CarlaPlugin::uiParameterChange(const uint32_t index, const float value)
{ {
CARLA_ASSERT(index < parameterCount()); CARLA_ASSERT(index < parameterCount());
return; return;


+ 2
- 2
source/backend/plugin/carla_plugin.pro View File

@@ -7,8 +7,8 @@ DEFINES = DEBUG
DEFINES += QTCREATOR_TEST DEFINES += QTCREATOR_TEST


# Plugins # Plugins
DEFINES += WANT_LADSPA
# WANT_DSSI WANT_LV2 WANT_VST
DEFINES += WANT_LADSPA WANT_DSSI
# WANT_LV2 WANT_VST


# Samplers # Samplers
#DEFINES += WANT_FLUIDSYNTH WANT_LINUXSAMPLER #DEFINES += WANT_FLUIDSYNTH WANT_LINUXSAMPLER


+ 8
- 7
source/backend/plugin/carla_plugin_internal.hpp View File

@@ -70,6 +70,14 @@ enum PluginBridgeInfoType {


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


const unsigned short MAX_RT_EVENTS = 128;
const unsigned short MAX_MIDI_EVENTS = 512;

const unsigned int PLUGIN_HINT_HAS_MIDI_IN = 0x1;
const unsigned int PLUGIN_HINT_HAS_MIDI_OUT = 0x2;

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

struct PluginAudioPort { struct PluginAudioPort {
uint32_t rindex; uint32_t rindex;
CarlaEngineAudioPort* port; CarlaEngineAudioPort* port;
@@ -398,13 +406,6 @@ private:


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


const unsigned short MAX_RT_EVENTS = 128;

const unsigned int PLUGIN_HINT_HAS_MIDI_IN = 0x1;
const unsigned int PLUGIN_HINT_HAS_MIDI_OUT = 0x2;

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

struct CarlaPluginProtectedData { struct CarlaPluginProtectedData {
CarlaEngine* const engine; CarlaEngine* const engine;
CarlaEngineClient* client; CarlaEngineClient* client;


+ 690
- 690
source/backend/plugin/dssi.cpp
File diff suppressed because it is too large
View File


+ 3
- 7
source/backend/plugin/ladspa.cpp View File

@@ -761,8 +761,6 @@ public:
return; return;
} }


CARLA_PROCESS_CONTINUE_CHECK;

// -------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------
// Parameters Input [Automation] // Parameters Input [Automation]


@@ -1114,8 +1112,8 @@ public:
{ {
CARLA_ASSERT(kData->engine != nullptr); CARLA_ASSERT(kData->engine != nullptr);
CARLA_ASSERT(kData->client == nullptr); CARLA_ASSERT(kData->client == nullptr);
CARLA_ASSERT(filename);
CARLA_ASSERT(label);
CARLA_ASSERT(filename != nullptr);
CARLA_ASSERT(label != nullptr);


// --------------------------------------------------------------- // ---------------------------------------------------------------
// open DLL // open DLL
@@ -1143,9 +1141,7 @@ public:
unsigned long i = 0; unsigned long i = 0;
while ((fDescriptor = descFn(i++)) != nullptr) while ((fDescriptor = descFn(i++)) != nullptr)
{ {
if (fDescriptor->Label == nullptr)
continue;
if (std::strcmp(fDescriptor->Label, label) == 0)
if (fDescriptor->Label != nullptr && std::strcmp(fDescriptor->Label, label) == 0)
break; break;
} }




Loading…
Cancel
Save