I made the following changes:
- enable 64-bit VST build in juce_IncludeCharacteristics.h (post) :
(I think already done in the latest non-modules tip)
- Code: Select all
#if __LP64__ // (disable VSTs and RTAS in a 64-bit build)
// #undef JucePlugin_Build_VST
#undef JucePlugin_Build_RTAS
#endif
- disable compiling of updateComponentPos() and viewBoundsChangedEvent() in juce_VST_Wrapper.mm (post):
(also already done in latest non-modules tip)
- Code: Select all
#if ! JUCE_64BIT // new
static void updateComponentPos (Component* const comp)
{
HIViewRef dummyView = (HIViewRef) (void*) (pointer_sized_int)
comp->getProperties() ["dummyViewRef"].toString().getHexValue64();
HIRect r;
HIViewGetFrame (dummyView, &r);
HIViewRef root;
HIViewFindByID (HIViewGetRoot (HIViewGetWindow (dummyView)), kHIViewWindowContentID, &root);
HIViewConvertRect (&r, HIViewGetSuperview (dummyView), root);
Rect windowPos;
GetWindowBounds (HIViewGetWindow (dummyView), kWindowContentRgn, &windowPos);
comp->setTopLeftPosition ((int) (windowPos.left + r.origin.x),
(int) (windowPos.top + r.origin.y));
}
static pascal OSStatus viewBoundsChangedEvent (EventHandlerCallRef, EventRef, void* user)
{
updateComponentPos ((Component*) user);
return noErr;
}
#endif // new
- The changes given here for resizing.
The plugin seems to run in Cubase, Reaper but not Studio One with the mentioned GUI not showing in Studio One, though I only tested on 10.6.
Chris
