Browse Source

Test for 32bit VST Cocoa UI via cockos extension

gh-pages
falkTX 11 years ago
parent
commit
3fabd2026b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      distrho/src/DistrhoPluginVST.cpp

+ 5
- 0
distrho/src/DistrhoPluginVST.cpp View File

@@ -438,6 +438,11 @@ public:
case effEditOpen:
if (fVstUi == nullptr)
{
# if defined(DISTRHO_OS_MAC) && ! defined(__LP64__)
if ((fEffect->dispatcher(fEffect, effCanDo, 0, 0, (void*)"hasCockosViewAsConfig", 0.0f) & 0xffff0000) != 0xbeef0000)
return 0;
# endif

d_lastUiSampleRate = fAudioMaster(fEffect, audioMasterGetSampleRate, 0, 0, nullptr, 0.0f);

fVstUi = new UIVst(fAudioMaster, fEffect, &fPlugin, this, (intptr_t)ptr);


Loading…
Cancel
Save