Browse Source

Try to load vst2 plugin again if first time plugin blows up

Fix for u-he mishandling languages

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
f34b7b57f9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      source/backend/plugin/CarlaPluginVST2.cpp

+ 13
- 0
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -2419,6 +2419,19 @@ public:
sCurrentUniqueId = static_cast<intptr_t>(uniqueId);
sLastCarlaPluginVST2 = this;

bool wasTriggered;
{
const ScopedAbortCatcher sac;

try {
fEffect = vstFn(carla_vst_audioMasterCallback);
} CARLA_SAFE_EXCEPTION_RETURN("Vst init", false);

wasTriggered = sac.wasTriggered();
}

// try again if plugin blows
if (wasTriggered)
{
const ScopedAbortCatcher sac;



Loading…
Cancel
Save