Browse Source

misc changes

tags/1.9.4
falkTX 13 years ago
parent
commit
2a641b7c8a
2 changed files with 4 additions and 4 deletions
  1. +4
    -1
      source/backend/plugin/CarlaPlugin.cpp
  2. +0
    -3
      source/backend/plugin/FluidSynthPlugin.cpp

+ 4
- 1
source/backend/plugin/CarlaPlugin.cpp View File

@@ -586,7 +586,10 @@ void CarlaPlugin::setCtrlChannel(const int8_t channel, const bool sendOsc, const

if (kData->ctrlChannel != channel)
{
kData->ctrlChannel = channel;
{
const ScopedProcessLocker spl(this, true);
kData->ctrlChannel = channel;
}

#ifndef BUILD_BRIDGE
const float ctrlf = channel;


+ 0
- 3
source/backend/plugin/FluidSynthPlugin.cpp View File

@@ -914,7 +914,6 @@ public:
bool allNotesOffSent = false;

uint32_t time, nEvents = kData->event.portIn->getEventCount();
uint32_t startTime = 0;
uint32_t timeOffset = 0;

uint32_t nextBankIds[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0 };
@@ -942,8 +941,6 @@ public:
if (kData->midiprog.current >= 0 && kData->midiprog.count > 0 && kData->ctrlChannel >= 0 && kData->ctrlChannel < 16)
nextBankIds[kData->ctrlChannel] = kData->midiprog.data[kData->midiprog.current].bank;
}
else
startTime += timeOffset;
}

// Control change


Loading…
Cancel
Save