Re: Not authorised errors
Re: Not authorised errors
- Subject: Re: Not authorised errors
- From: Urs Heckmann <email@hidden>
- Date: Sat, 9 Aug 2003 09:15:35 +0200
Hi everybody,
Why not let the user save settings? - I guess it would be nice for demo
users if they could get back their efforts after registering. Would
make it even more attractive...
And why return an error code? - Just not setting anything on
RestoreState does the trick as well.
Cheers,
;) Urs
Am Samstag, 09.08.03, um 08:26 Uhr (Europe/Berlin) schrieb Bill Stewart:
OK :)
So a number of units are reporting a -1 error from a Get/Set class
info (because those AU's are not registered and this is a restriction
of the AU in "demo" mode)
So, a fine idea.
The problem is this - hosts don't know how to react to this - is this
a fatal error, something wrong with the class info dictionary, etc...
The other problem is, Apple reserves ranges for error codes, and the
result code should be within the range of error codes we've reserved
for AU usage. To make matter worse, it looks like -1 is being used in
a number of different places already, in other parts of the OS:)
I think it is a good idea, to add:
kAudioUnitErr_Unauthorised
so the host's can know this is the situation and thus respond
appropriately
But, I'm less comfortable about giving this a value of -1
So, what to do?
Can those AU's that are returning -1 for this situation, please change
their result codes?
In the meantime, the hosts can I guess special case this property for
a -1 result until this practise is changed - we'd treat this as a
binary compatibility workaround and stop forgiving the "offenders" in
a future version :) - but I don't think we need go that far if you'll
agree to just change the result code to a "blessed" one.
I'll post a new error code if this is ok with everyone.
Sorry to be a pain, but please tell us when you're going to do this
kind of thing, and pester us if we don't give you the answer you need
- I know we'd discussed this scenario some time earlier, but I wasn't
aware (or I'd forgotten) that some of you were waiting for this.
Thanks
Bill
-- mailto:email@hidden
tel: +1 408 974 4056
_______________________________________________________________________
___
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
_______________________________________________________________________
___
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.