Re: SDK Available
Re: SDK Available
- Subject: Re: SDK Available
- From: Marc Poirier <email@hidden>
- Date: Tue, 29 Apr 2003 21:15:12 +0200 (CEST)
On Mon, 28 Apr 2003, [ISO-8859-1] Airy Andri wrote:
>
> But shouldn't there be handling of the case when the properties are not
>
> supported, like I see for other properties, something like:
>
> case kAudioUnitProperty_FactoryPresets:
>
> require(inScope == kAudioUnitScope_Global, InvalidScope);
>
> result = GetPresets(NULL);
>
> if (!result) {
>
> outDataSize = sizeof(CFArrayRef);
>
> outWritable = false;
>
> }
>
> else
>
> goto InvalidProperty;
>
> break;
>
>
>
> case kAudioUnitProperty_ParameterValueStrings:
>
> result = GetParameterValueStrings(inScope, inElement, NULL);
>
> if (result == noErr) {
>
> outDataSize = sizeof(CFArrayRef);
>
> outWritable = false;
>
> validateElement = false;
>
> }
>
> else
>
> goto InvalidProperty;
>
> break;
>
>
Well, if you don't support these properties, I suppose you don't
>
override the default implementation, which returns
>
kAudioUnitErr_InvalidProperty.
>
So, result == kAudioUnitErr_InvalidProperty
Duhhh, yes of course, you're right, sorry for that dumb one...
_______________________________________________
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.