Browse Source

Misc

tags/1.9.4
falkTX 11 years ago
parent
commit
aafa358949
1 changed files with 0 additions and 33 deletions
  1. +0
    -33
      source/backend/plugin/VstPlugin.cpp

+ 0
- 33
source/backend/plugin/VstPlugin.cpp View File

@@ -950,45 +950,12 @@ public:
uint32_t midiEventCount = 0;

#if 0
vstTimeOffset = 0;

double aInsPeak[2] = { 0.0 };
double aOutsPeak[2] = { 0.0 };

// reset MIDI
events.numEvents = 0;
midiEvents[0].type = 0;

CARLA_PROCESS_CONTINUE_CHECK;

// --------------------------------------------------------------------------------------------------------
// Input VU

if (aIn.count > 0 && x_engine->getOptions().processMode != PROCESS_MODE_CONTINUOUS_RACK)
{
if (aIn.count == 1)
{
for (k=0; k < frames; k++)
{
if (std::abs(inBuffer[0][k]) > aInsPeak[0])
aInsPeak[0] = std::abs(inBuffer[0][k]);
}
}
else if (aIn.count > 1)
{
for (k=0; k < frames; k++)
{
if (std::abs(inBuffer[0][k]) > aInsPeak[0])
aInsPeak[0] = std::abs(inBuffer[0][k]);

if (std::abs(inBuffer[1][k]) > aInsPeak[1])
aInsPeak[1] = std::abs(inBuffer[1][k]);
}
}
}

CARLA_PROCESS_CONTINUE_CHECK;

// --------------------------------------------------------------------------------------------------------
// Parameters Input [Automation]



Loading…
Cancel
Save