Re: More newbie AU questions (compiler stuff, indexed parameters...)
Re: More newbie AU questions (compiler stuff, indexed parameters...)
- Subject: Re: More newbie AU questions (compiler stuff, indexed parameters...)
- From: Bill Stewart <email@hidden>
- Date: Mon, 16 Sep 2002 14:51:59 -0700
I tested this out with the generic view (where the view would then show a
popuup menu)... This is what I added to get it to work:
GetParameterValueStrings(AudioUnitScope inScope,
AudioUnitParameterID inParameterID,
CFArrayRef * outStrings)
{
if (inScope == kAudioUnitScope_Global && inParameterID ==
kDelayParam_TestIndex)
{
CFStringRef strs[] = { CFSTR("First Value"), CFSTR("Second Value"),
CFSTR("Third Value") };
*outStrings = CFArrayCreate(NULL, (const void**)strs, 3, NULL);
return noErr;
}
return kAudioUnitErr_InvalidProperty;
}
And then in GetParameterInfo:
case kDelayParam_TestIndex:
AUBase::FillInParameterName (outParameterInfo,
kTestIndex_Name);
outParameterInfo.unit = kAudioUnitParameterUnit_Indexed;
outParameterInfo.minValue = 4;
outParameterInfo.maxValue = 6;
outParameterInfo.defaultValue = kDefaultValue_TestIndex;
break;
I tested this with various values for the min and max values - and it all
seemed to work OK - let me know how this goes (will add this to the SDK)
Bill
on 16/9/02 8:49 AM, Paul Kellett wrote:
>
"Marc Poirier" <email@hidden> wrote:
>
>
>
> I think that in GetParameterInfo() you are also supposed to do this:
>
> outParameterInfo.cfNameString = myString;
>
>
That seems to be for using a CFString as the parameter name rather
>
than for providing a list of labels for parameter values. Has anyone
>
got kAudioUnitParameterUnitIndexed to work? The Apple AudioUnits
>
don't seem to use it...
>
>
>
Thanks everyone for the information on ProjectBuilder settings, I
>
now know all the things I can try, I just have to get them in the
>
right order to do what I want!
>
>
>
Paul.
>
>
_____________________________
>
>
m a x i m | digital audio
>
>
http://mda-vst.com
>
_____________________________
>
_______________________________________________
>
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.
--
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"...Been havin' some trouble lately in the sausage business," C.M.O.T.
Dibbler replied.
"What, having trouble making both ends meat?"
__________________________________________________________________________
_______________________________________________
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.