diff --git a/c++/carla-backend/carla_engine_jack.cpp b/c++/carla-backend/carla_engine_jack.cpp index 795803b..26eee7b 100644 --- a/c++/carla-backend/carla_engine_jack.cpp +++ b/c++/carla-backend/carla_engine_jack.cpp @@ -285,7 +285,6 @@ protected: processPluginNOT(plugin, nframes); plugin->engineProcessUnlock(); - } } else if (carlaOptions.processMode == PROCESS_MODE_CONTINUOUS_RACK) diff --git a/c++/carla-backend/carla_native.cpp b/c++/carla-backend/carla_native.cpp index 4f56e17..e8e19da 100644 --- a/c++/carla-backend/carla_native.cpp +++ b/c++/carla-backend/carla_native.cpp @@ -885,7 +885,11 @@ public: // -------------------------------------------------------------------------------------------------------- // Input VU +#ifndef BUILD_BRIDGE + if (aIn.count > 0 && carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#else if (aIn.count > 0) +#endif { if (aIn.count == 1) { @@ -1334,10 +1338,15 @@ public: } // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } } } diff --git a/c++/carla-backend/dssi.cpp b/c++/carla-backend/dssi.cpp index dcd27ab..8d38089 100644 --- a/c++/carla-backend/dssi.cpp +++ b/c++/carla-backend/dssi.cpp @@ -864,7 +864,11 @@ public: // -------------------------------------------------------------------------------------------------------- // Input VU +#ifndef BUILD_BRIDGE + if (aIn.count > 0 && carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#else if (aIn.count > 0) +#endif { if (aIn.count == 1) { @@ -1351,10 +1355,15 @@ public: } // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } } diff --git a/c++/carla-backend/fluidsynth.cpp b/c++/carla-backend/fluidsynth.cpp index f23238b..932c16a 100644 --- a/c++/carla-backend/fluidsynth.cpp +++ b/c++/carla-backend/fluidsynth.cpp @@ -1182,10 +1182,15 @@ public: fluid_synth_set_gain(f_synth, x_volume); // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } } } diff --git a/c++/carla-backend/ladspa.cpp b/c++/carla-backend/ladspa.cpp index 2325918..107b742 100644 --- a/c++/carla-backend/ladspa.cpp +++ b/c++/carla-backend/ladspa.cpp @@ -734,7 +734,11 @@ public: // -------------------------------------------------------------------------------------------------------- // Input VU +#ifndef BUILD_BRIDGE + if (aIn.count > 0 && carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#else if (aIn.count > 0) +#endif { if (aIn.count == 1) { @@ -1027,10 +1031,15 @@ public: } // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } } diff --git a/c++/carla-backend/linuxsampler.cpp b/c++/carla-backend/linuxsampler.cpp index d95759b..d1053b4 100644 --- a/c++/carla-backend/linuxsampler.cpp +++ b/c++/carla-backend/linuxsampler.cpp @@ -646,10 +646,15 @@ public: } // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } } } diff --git a/c++/carla-backend/lv2.cpp b/c++/carla-backend/lv2.cpp index 2a85db5..5203194 100644 --- a/c++/carla-backend/lv2.cpp +++ b/c++/carla-backend/lv2.cpp @@ -1993,7 +1993,11 @@ public: // -------------------------------------------------------------------------------------------------------- // Input VU +#ifndef BUILD_BRIDGE + if (aIn.count > 0 && carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#else if (aIn.count > 0) +#endif { if (aIn.count == 1) { @@ -2667,10 +2671,15 @@ public: } // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } } diff --git a/c++/carla-backend/vst.cpp b/c++/carla-backend/vst.cpp index 8f09831..fe04a6f 100644 --- a/c++/carla-backend/vst.cpp +++ b/c++/carla-backend/vst.cpp @@ -873,7 +873,11 @@ public: // -------------------------------------------------------------------------------------------------------- // Input VU +#ifndef BUILD_BRIDGE + if (aIn.count > 0 && carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#else if (aIn.count > 0) +#endif { if (aIn.count == 1) { @@ -1317,10 +1321,15 @@ public: } // Output VU - for (k=0; i < 2 && k < frames; k++) +#ifndef BUILD_BRIDGE + if (carlaOptions.processMode != PROCESS_MODE_CONTINUOUS_RACK) +#endif { - if (abs(outBuffer[i][k]) > aOutsPeak[i]) - aOutsPeak[i] = abs(outBuffer[i][k]); + for (k=0; i < 2 && k < frames; k++) + { + if (abs(outBuffer[i][k]) > aOutsPeak[i]) + aOutsPeak[i] = abs(outBuffer[i][k]); + } } }