# Audio Unit wrapper with VSTPluginInstance

**URL:** <https://forum.juce.com/t/audio-unit-wrapper-with-vstplugininstance/6820>\
**Category:** Audio Plugins\
**Created:** [May 5, 2011, 11:45am UTC](https://forum.juce.com/t/audio-unit-wrapper-with-vstplugininstance/6820 "2011-05-05T11:45:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilig0](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dilig0](https://forum.juce.com/u/dilig0)\
**Post date:** [May 5, 2011, 11:45am UTC](https://forum.juce.com/t/audio-unit-wrapper-with-vstplugininstance/6820/1 "2011-05-05T11:45:50Z")

</div>

Hello !

Context:  
I need to implement an audio unit wrapper wrapping a non-Juce VST plug-in.  
My idea is to use the audio unit wrapper provided and customize it using VSTPluginInstance for the audio part (inheriting AudioProcessor) and VSTPluginWindow for the UI (inheriting AudioProcessorEditor).

Status:  
I started implementing this solution. I get sound from the audio unit plugin but cannot get UI working from any host.  
Thanks to AU Lab, I can choose the kind of view and in both cases, get black window (size seems right).

I am really confused with graphical library on Mac:  
As far as I understood, the Juce Audio Unit Wrapper provides UI based on Carbon as well as on Cocoa.  
The class maintaining the AU window is EditorCompHolder in both cases.  
The EditorCompHolder object maintains a reference on a VSTPluginWindow object, itself maintaining reference onto an InnerWrapperComponent based on Carbon UI.  
Can this configuration work ?  
Notice that supporting 64-bit is required.

Questions:  
Is the solution previously described feasible ?

If it is, what could be the UI issue and solutions ?

If it is not, what other solution should I consider ?

Thanks
