From 304a8f54bc6e9bc827a46d3e09041d757c6c573b Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 4 Jul 2015 22:53:25 +0200 Subject: [PATCH] Misc --- source/plugin/carla-lv2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/plugin/carla-lv2.cpp b/source/plugin/carla-lv2.cpp index 20bbfe17b..aac31f623 100644 --- a/source/plugin/carla-lv2.cpp +++ b/source/plugin/carla-lv2.cpp @@ -258,10 +258,7 @@ public: { fIsOffline = (fPorts.freewheel != nullptr && *fPorts.freewheel >= 0.5f); - if (frames == 0) - return updateParameterOutputs(); - - // cache midi events and time information + // cache midi events and time information first if (fDescriptor->midiIns > 0 || (fDescriptor->hints & NATIVE_PLUGIN_USES_TIME) != 0) { fMidiEventCount = 0; @@ -522,6 +519,9 @@ public: fDescriptor->set_parameter_value(fHandle, i, curValue); } + if (frames != 0) + return updateParameterOutputs(); + // FIXME fDescriptor->process(fHandle, const_cast(fPorts.audioIns), fPorts.audioOuts, frames, fMidiEvents, fMidiEventCount);