diff --git a/source/backend/engine/CarlaEngineGraph.cpp b/source/backend/engine/CarlaEngineGraph.cpp index 3890da3eb..e21a29c37 100644 --- a/source/backend/engine/CarlaEngineGraph.cpp +++ b/source/backend/engine/CarlaEngineGraph.cpp @@ -791,11 +791,11 @@ void RackGraph::process(CarlaEngine::ProtectedData* const data, const float* inB // initialize event outputs (zero) carla_zeroStruct(data->events.out, kMaxEngineEventInternalCount); - bool processed = false; - uint32_t oldAudioInCount = 0; uint32_t oldAudioOutCount = 0; uint32_t oldMidiOutCount = 0; + bool processed = false; + juce::Range range; // process plugins for (uint i=0; i < data->curPluginCount; ++i) @@ -860,8 +860,6 @@ void RackGraph::process(CarlaEngine::ProtectedData* const data, const float* inB { EnginePluginData& pluginData(data->plugins[i]); - juce::Range range; - if (oldAudioInCount > 0) { range = FloatVectorOperations::findMinAndMax(inBuf0, iframes);