Browse Source

Add special hack to carla-vst so it works under tracktion

tags/1.9.6
falkTX 9 years ago
parent
commit
f1447e3f0d
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      source/plugin/carla-vst.cpp

+ 15
- 1
source/plugin/carla-vst.cpp View File

@@ -51,7 +51,7 @@ struct ERect {
int16_t top, left, bottom, right;
};
#else
# include "vst/aeffectx.h"
# include "vst2/aeffectx.h"
#endif

using juce::ScopedJuceInitialiser_GUI;
@@ -249,6 +249,20 @@ public:

carla_setenv("CARLA_PLUGIN_EMBED_WINID", "0");

carla_zeroChar(strBuf, 0xff+1);
fAudioMaster(fEffect, audioMasterGetProductString, 0, 0, strBuf, 0);

if (std::strcmp(strBuf, "Tracktion") == 0)
{
carla_stdout("Tracktion detected, delaying UI appearance so it works properly...");

for (int x=10; --x>=0;)
{
fAudioMaster(fEffect, audioMasterIdle, 0, 0, nullptr, 0);
carla_msleep(25);
}
}

ret = 1;
}
break;


Loading…
Cancel
Save