Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
- Subject: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
- From: Seth Nickell <email@hidden>
- Date: Thu, 6 Aug 2009 13:52:59 -0700
Hey Brian,
I have no idea how this reacts on 10.4. My app is currently reliant on
10.5 for other reasons, so I haven't tested Tiger fallback. My guess?
It segfaults. (anyone with tiger handy want to test? you could create
the xcode au with cocoa view template, and add my bits to that)
I'd rather solve this by making the wrapper actually work on Tiger,
than just making it fail gracefully. Eventually, I want to support
tiger, so I myself am interested in compat, I'm looking into this
curently.
But, in the short term, I'm up for graceful fixes... I can check the
API availability at run-time, no problem... what I don't know how to
do, is tell the host there's no Carbon UI when we export a symbol
saying we have a component entry. AFAICT, the best I could do is
return an error (rather than a crash) from
AudioUnitCarbonViewCreate(). How hosts will react to that... your
guess is as good as mine. Hopefully they'll show the generic UI.
Another option would be to simply embed the generic UI (from AUPublic
or whatever) if we don't succesfully load Cocoa bits.
-Seth
On Thu, Aug 6, 2009 at 12:18 PM, Brian Willoughby <email@hidden> wrote:
>
> What happens on 10.4 and earlier? Does an AU with this enhancement create a broken and empty Carbon UI, or does it generate the appropriate return code to tell the host that there is no Carbon UI?
>
> Isn't there some say you could check the OSX version at run time, and then only access the 10.5 API if running 10.5?
>
> Brian
>
>
> On Aug 6, 2009, at 10:40, Seth Nickell wrote:
> Downside: using HICocoaView means this only works on 10.5 or greater (if anyone has a fix they're willing to share, I'd be more than happy to wrap it into the code).
>
_______________________________________________
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