[Solved] AAX wrapper in Pro Tools v10 - Empty GUI

Hi Federico,

I ran into the same issue. The point is that Pro Tools 10 is 32 bits and the Vst2EditorWrapper / BaseEditorWrapper is hard coded to pass kPlatformTypeHIView (Carbon) as the platform type to the underlying IPlugView::attached() function when compiled for 32 bits while Pro Tools in fact uses Cocoa, so it should acutally pass kPlatformTypeNSView.

As a patch you can try something like this in your view’s attached() implementation, so you don’t have to touch the SDK / Wrapper implementation:

...
auto type = platformType;

auto controller = getController();
if(controller != nullptr)
{
	void *ptr;
	auto host = controller->getHostContext();

	// Override view type in Pro Tools 10 (32 bits) if we're running on Mac OS		
	if(host != nullptr && host->queryInterface(IVst3ToAAXWrapper::iid, &ptr) == kResultOk
	&& sizeof(void*) == 4 && type == kWindowRef)
	{
		type = kNSView;
	}
}

...
// NOTE: Don't forget to pass type instead of platformType when calling into CFrame::open()!

Hope that helps.

Best,
Ray