Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: SDK Available
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SDK Available



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.

References: 
 >Re: SDK Available (From: Airy André <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.