what should a host do when ....
what should a host do when ....
- Subject: what should a host do when ....
- From: Paul Davis <email@hidden>
- Date: Fri, 08 Apr 2011 16:10:58 -0400
here's the code ardour (and mixbus) use to begin the process of
creating a cocoa view for an AU plugin:
if(AudioUnitGetProperty(*au->get_au(),
kAudioUnitProperty_CocoaUI,
kAudioUnitScope_Global,
0,
cocoaViewInfo,
&dataSize) == noErr) {
CocoaViewBundlePath = (NSURL *)cocoaViewInfo->mCocoaAUViewBundleLocation;
// we only take the first view in this example.
factoryClassName = (NSString *)cocoaViewInfo->mCocoaAUViewClass[0];
we recently came across a plugin which claims to have a Cocoa UI (i.e.
GetPropertyInfo indicated that kAudioUnitProperty_CocoaUI was non-zero
in size) but unlike every other plugin we've encountered so far, it
returns a null factory class name.
i've modified the code to fallback on the carbon GUI which is also
provided, but is it really possible for the factory class name to be
somewhere other than mCocoaAUViewClass[0] ?
--p
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden