Re: what should a host do when ....
Re: what should a host do when ....
- Subject: Re: what should a host do when ....
- From: Paul Davis <email@hidden>
- Date: Sun, 24 Apr 2011 23:07:28 -0400
On Thu, Apr 21, 2011 at 2:46 PM, Michael Hopkins <email@hidden> wrote:
> Paul,
> If a host does not get a valid bundle path, or cannot load the factory
> class, you should probably fall back to the generic view or Carbon View (if
> present). Does the plugin you are describing pass validation? I would assume
> that it wouldn't.
It turns out that it does:
--------------------------------------------
VERIFYING CUSTOM UI
Carbon View Components Available: 1
auvw afs4 Aura - AuraPlug: Whamdrive Carbon View
PASS
Cocoa Views Available: 0
---------------------------------------------
the "pre-code" that we use to determine if there is a Cocoa view looks
like this (we've already established that the plugin has the CocoaUI
property):
OSStatus result = AudioUnitGetPropertyInfo (*au->get_au(),
kAudioUnitProperty_CocoaUI,
kAudioUnitScope_Global,
0,
&dataSize,
&isWritable );
numberOfClasses = (dataSize - sizeof(CFURLRef)) / sizeof(CFStringRef);
// Does view have custom Cocoa UI?
if ((result == noErr) && (numberOfClasses > 0) ) {
.... CODE THAT ASSUMES THERE IS A COCOA UI ....
Did we make a mistake in there somewhere? numberOfClasses is non-zero ....
--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