Re: kAudioUnitProperty_ContextName
Re: kAudioUnitProperty_ContextName
- Subject: Re: kAudioUnitProperty_ContextName
- From: Stefan Gretscher <email@hidden>
- Date: Tue, 27 Jul 2004 13:27:14 +0200
Am 20.07.2004 um 21:04 schrieb Marc Poirier:
The kAudioUnitProperty_ContextName seems like a nice idea and useful,
though unfortunately also seems to be a neglected corner of the AU
API.
I'll try to add support for this to Logic soon, but we'll need to
answer your questions first. :-)
Here's how I'd suggest kAudioUnitProperty_ContextName should be handled:
1) Should the text (the property's value) include the AU's name plus
extra context info, or only the extra context info? In other words,
let's say for example I had the plugin "Robocop FX" inserted on track
3. Would a possible ContextName be something like "Robocop FX: track
3" or just "track 3"?
In my opinion it only should contains "track 3", because each AU knows
its name and can add it or not as applicable. Adding strings is easier
then removing the name to get the pure context string.
2) ContextName is not covered in CF_AU_Properties.text nor are its
CoreFoundation semantics covered in the regular docs for the AU API:
/Developer/Documentation/CoreAudio/AudioUnits/Topics/
au_properties.html#kAudioUnitProperty_ContextName
I am guessing that it is the norm (the AU creates or retains the value
for the client on GetProperty, and retains the new value on
SetProperty), but it seems to me like this should be explicitly stated
somewhere.
I'd definitely vote for following the norm.
3) If the property's value has not yet been Set but someone tries to
Get it, is the correct behavior for the AU to supply a null
CFStringRef and return noErr, or to return an error? And if an error,
which one?
I'd say returning a NULL ref seems appropriate, indicating "context not
defined".
It should also be legal for a host to set a NULL ref here to clear the
context.
That's just my opinion, let's see what others think.
Stefan
_______________________________________________
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.