Re: Min and max values for an indexed parameter.
Re: Min and max values for an indexed parameter.
- Subject: Re: Min and max values for an indexed parameter.
- From: Airy André <email@hidden>
- Date: Sat, 31 Jan 2004 13:07:45 +0100
All the AU parameter scheme has little to do with the GUI used to
represent them.
You just choose the values the most adapted to what they represent.
The AUCarbonViewControl are responsible to make the link between the
control and the parameter.
And I think the sample code choose 4 just for that : to demonstrate
that you can choose whatever value you need.
Airy
Le 31 janv. 04, ` 09:52, Philippe Wicker a icrit :
Hi all,
I'm digging into the part of the SampleEffectUnit code which deals
with preset and parameters management. In the
SampleEffectUnit::GetParameterInfo method, the min and max values of
the indexed parameter are set to 4 and 6. This indexed parameter may
have 3 values. So 4 an 6 values actually determine 3 discrete steps.
My question is why does the values starts from 4 and not 0 (or 1
because we deal with a popup entry here)? My understanding until now
is that the value of an indexed parameter is the index into the menu
that displays the value strings. It appears I was wrong :(( What is
the rationale behind the possibility of choosing arbitrary min values?
Thanks,
Philippe Wicker
email@hidden
_______________________________________________
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.