Re: kAudioUnitErr_Unauthorized and auval
Re: kAudioUnitErr_Unauthorized and auval
- Subject: Re: kAudioUnitErr_Unauthorized and auval
- From: Andrew Kimpton <email@hidden>
- Date: Tue, 07 Feb 2006 22:27:31 -0800
Stefan Gretscher wrote:
Hi Andrew,
we're aware of this problem, and I've recently talked to Bill Stewart
about it.
The current idea is that Bill's team could change auval so that it
handles kAudioUnitErr_Unauthorized with a separate return code which
is indicating that validation wasn't performed because of
authorization failure, and our team could then adopt Logic so that it
evaluates this new return code and presents corresponding warning
dialogs etc.
Yep - I think this is a fine idea, obviously the change should be
communicated to the community at large. I believe other apps (DP ?) are
now also using auval to validate AUs in the system so it would be good
to maintain parity across the various host apps.
This is how things would be handled if kAudioUnitErr_Unauthorized is
returned from Initialize(), in case it's returned from
OpenAComponent() the behaviour would be slightly different because
then Logic could not open any UI for such an AU, so such an AU must
provide some other way of handling authorization.
This looks good too. However at this (late) hour I'm not sure how an AU
would get OpenAComponent() to return the unauthorized error ? If you're
using the AU SDK doesn't OpenAComponent 'turn into' the AU's constructor
? And there's no return value there (just the possibility of throwing an
exception). Or is there a virtual method called during the open phase
after construction and before initialization that I'm not recalling ?
Do think this scheme would work well with your requirements? Any
comments/suggestions?
Looks good - go for it says I, and in the meantime I do know have a
satisfactory workaround/solution.
Best,
Stefan
Andrew 8-)
_______________________________________________
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