Browse Source

Misc fixing

tags/1.9.4
falkTX 10 years ago
parent
commit
65946c36e8
2 changed files with 14 additions and 3 deletions
  1. +6
    -0
      source/backend/engine/CarlaEngineNative.cpp
  2. +8
    -3
      source/externalui.py

+ 6
- 0
source/backend/engine/CarlaEngineNative.cpp View File

@@ -422,6 +422,10 @@ protected:

if (CarlaPlugin* const plugin = fEngine->getPlugin(pluginId))
plugin->setCustomData(type, key, value, true);

delete[] type;
delete[] key;
delete[] value;
}
else if (std::strcmp(msg, "set_chunk_data") == 0)
{
@@ -433,6 +437,8 @@ protected:

if (CarlaPlugin* const plugin = fEngine->getPlugin(pluginId))
plugin->setChunkData(cdata);

delete[] cdata;
}
else if (std::strcmp(msg, "prepare_for_save") == 0)
{


+ 8
- 3
source/externalui.py View File

@@ -71,6 +71,9 @@ class ExternalUI(object):
def d_setParameterValue(self, index, value):
self.send(["control", index, value])

def d_setProgram(self, channel, bank, program):
self.send(["program", channel, bank, program])

def d_setState(self, key, value):
self.send(["configure", key, value])

@@ -83,7 +86,7 @@ class ExternalUI(object):
def d_parameterChanged(self, index, value):
return

def d_programChanged(self, index):
def d_programChanged(self, channel, bank, program):
return

def d_stateChanged(self, key, value):
@@ -141,8 +144,10 @@ class ExternalUI(object):
self.d_parameterChanged(index, value)

elif msg == "program":
index = int(self.fPipeRecv.readline())
self.d_programChanged(index)
channel = int(self.fPipeRecv.readline())
bank = int(self.fPipeRecv.readline())
program = int(self.fPipeRecv.readline())
self.d_programChanged(channel, bank, program)

elif msg == "configure":
key = self.fPipeRecv.readline().strip().replace("\r", "\n")


Loading…
Cancel
Save