Browse Source

Last minute fixes

tags/1.9.8
falkTX 8 years ago
parent
commit
e4af1649f4
4 changed files with 10 additions and 8 deletions
  1. +2
    -0
      source/backend/engine/CarlaEngine.cpp
  2. +6
    -6
      source/backend/plugin/CarlaPluginLinuxSampler.cpp
  3. +1
    -1
      source/carla_skin.py
  4. +1
    -1
      source/modules/rtmempool/rtmempool.c

+ 2
- 0
source/backend/engine/CarlaEngine.cpp View File

@@ -483,10 +483,12 @@ bool CarlaEngine::addPlugin(const BinaryType btype, const PluginType ptype,
// loading a project, revert first status if set // loading a project, revert first status if set
else if (pData->firstLinuxSamplerInstance) else if (pData->firstLinuxSamplerInstance)
pData->firstLinuxSamplerInstance = false; pData->firstLinuxSamplerInstance = false;
#if 0


// now check if bridge is needed // now check if bridge is needed
if (! pData->firstLinuxSamplerInstance) if (! pData->firstLinuxSamplerInstance)
preferBridges = true; preferBridges = true;
#endif
} }
} }
#endif // ! BUILD_BRIDGE #endif // ! BUILD_BRIDGE


+ 6
- 6
source/backend/plugin/CarlaPluginLinuxSampler.cpp View File

@@ -224,7 +224,7 @@ public:
fRealName(nullptr), fRealName(nullptr),
sSampler(), sSampler(),
fAudioOutputDevice(engine, this, kUses16Outs), fAudioOutputDevice(engine, this, kUses16Outs),
fMidiInputDevice(sSampler),
fMidiInputDevice(&sSampler),
fMidiInputPort(nullptr), fMidiInputPort(nullptr),
fInstrumentIds(), fInstrumentIds(),
fInstrumentInfo() fInstrumentInfo()
@@ -232,8 +232,8 @@ public:
carla_debug("CarlaPluginLinuxSampler::CarlaPluginLinuxSampler(%p, %i, %s, %s)", engine, id, bool2str(isGIG), bool2str(use16Outs)); carla_debug("CarlaPluginLinuxSampler::CarlaPluginLinuxSampler(%p, %i, %s, %s)", engine, id, bool2str(isGIG), bool2str(use16Outs));


// TODO - option for this // TODO - option for this
sSampler->SetGlobalMaxStreams(LinuxSampler::kMaxStreams);
sSampler->SetGlobalMaxVoices(LinuxSampler::kMaxVoices);
sSampler.SetGlobalMaxStreams(LinuxSampler::kMaxStreams);
sSampler.SetGlobalMaxVoices(LinuxSampler::kMaxVoices);


carla_zeroStructs(fCurProgs, MAX_MIDI_CHANNELS); carla_zeroStructs(fCurProgs, MAX_MIDI_CHANNELS);
carla_zeroStructs(fSamplerChannels, MAX_MIDI_CHANNELS); carla_zeroStructs(fSamplerChannels, MAX_MIDI_CHANNELS);
@@ -274,7 +274,7 @@ public:
fEngineChannels[i] = nullptr; fEngineChannels[i] = nullptr;
} }


sSampler->RemoveSamplerChannel(fSamplerChannels[i]);
sSampler.RemoveSamplerChannel(fSamplerChannels[i]);
fSamplerChannels[i] = nullptr; fSamplerChannels[i] = nullptr;
} }
} }
@@ -1225,7 +1225,7 @@ public:


for (uint i=0; i<kMaxChannels; ++i) for (uint i=0; i<kMaxChannels; ++i)
{ {
LinuxSampler::SamplerChannel* const samplerChannel(sSampler->AddSamplerChannel());
LinuxSampler::SamplerChannel* const samplerChannel(sSampler.AddSamplerChannel());
CARLA_SAFE_ASSERT_CONTINUE(samplerChannel != nullptr); CARLA_SAFE_ASSERT_CONTINUE(samplerChannel != nullptr);


samplerChannel->SetEngineType(kIsGIG ? "GIG" : "SFZ"); samplerChannel->SetEngineType(kIsGIG ? "GIG" : "SFZ");
@@ -1386,7 +1386,7 @@ private:
uint32_t fCurProgs[MAX_MIDI_CHANNELS]; uint32_t fCurProgs[MAX_MIDI_CHANNELS];
float fParamBuffers[LinuxSamplerParametersMax]; float fParamBuffers[LinuxSamplerParametersMax];


SharedResourcePointer<LinuxSampler::Sampler> sSampler;
LinuxSampler::Sampler sSampler;


LinuxSampler::AudioOutputDevicePlugin fAudioOutputDevice; LinuxSampler::AudioOutputDevicePlugin fAudioOutputDevice;
LinuxSampler::MidiInputDevicePlugin fMidiInputDevice; LinuxSampler::MidiInputDevicePlugin fMidiInputDevice;


+ 1
- 1
source/carla_skin.py View File

@@ -1123,7 +1123,7 @@ class AbstractPluginSlot(QFrame, PluginEditParentMeta):
# Export LV2 # Export LV2


elif actSel == actExportLV2: elif actSel == actExportLV2:
ret = QFileDialog.getSaveFileName(self, self.tr("Export Plugin as LV2"), "", "", QFileDialog.ShowDirsOnly|QFileDialog.HideNameFilterDetails)
ret = QFileDialog.getSaveFileName(self, self.tr("Export Plugin as LV2"), "", "", "", QFileDialog.ShowDirsOnly|QFileDialog.HideNameFilterDetails)


if config_UseQt5: if config_UseQt5:
ret = ret[0] ret = ret[0]


+ 1
- 1
source/modules/rtmempool/rtmempool.c View File

@@ -209,7 +209,7 @@ void rtsafe_memory_pool_destroy(RtMemPool_Handle handle)
// caller should deallocate all chunks prior releasing pool itself // caller should deallocate all chunks prior releasing pool itself
if (poolPtr->usedCount != 0) if (poolPtr->usedCount != 0)
{ {
assert(0);
fprintf(stderr, "warning: rtsafe_memory_pool_destroy called with nodes still active\n");
} }


while (poolPtr->unusedCount != 0) while (poolPtr->unusedCount != 0)


Loading…
Cancel
Save