• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what should a host do when ....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >what should a host do when .... (From: Paul Davis <email@hidden>)
 >Re: what should a host do when .... (From: Michael Hopkins <email@hidden>)

  • Prev by Date: iPhone 4 built-in mic audio input now stereo?
  • Next by Date: iOS - AudioSession Category to play in sleep mode
  • Previous by thread: Re: what should a host do when ....
  • Next by thread: Cocoa classes and plug-in bundle (dylib) in-memory lifetimes (AU, x64, ObjC)
  • Index(es):
    • Date
    • Thread