Browse Source

Fix initial parameter output values for JACK standalone

pull/72/head
falkTX 4 years ago
parent
commit
3d5bd09c71
1 changed files with 3 additions and 8 deletions
  1. +3
    -8
      distrho/src/DistrhoPluginJack.cpp

+ 3
- 8
distrho/src/DistrhoPluginJack.cpp View File

@@ -143,6 +143,8 @@ public:
if (const uint32_t count = fPlugin.getParameterCount())
{
fLastOutputValues = new float[count];
std::memset(fLastOutputValues, 0, sizeof(float)*count);

#if DISTRHO_PLUGIN_HAS_UI
fParametersChanged = new bool[count];
std::memset(fParametersChanged, 0, sizeof(bool)*count);
@@ -150,17 +152,10 @@ public:

for (uint32_t i=0; i < count; ++i)
{
if (fPlugin.isParameterOutput(i))
{
fLastOutputValues[i] = fPlugin.getParameterValue(i);
}
else
{
fLastOutputValues[i] = 0.0f;
#if DISTRHO_PLUGIN_HAS_UI
if (! fPlugin.isParameterOutput(i))
fUI.parameterChanged(i, fPlugin.getParameterValue(i));
#endif
}
}
}
else


Loading…
Cancel
Save