If you're truncating a float, then it seems like you're using the VST model of 
parameters and not AudioUnits.

Enumerated menu parameters are supposed to be integers that range from 0 to N-1 
or 1 to N. The type is supposed to be kAudioUnitParameterUnit_Indexed. There 
should be no reason to quantize. Your min and max can be anything you like, so 
long as all of the values used in the range are contiguous (and min is less 
than max, of course).

Brian Willoughby


On Aug 31, 2021, at 21:40, audio boy wrote:
> I have run into a problem under AUVal for whatever reason had not
> noticed this before.
> 
> AUVal performs checks to ensure that get parameter matches the last
> set parameter value. The problem is for discrete parameters (i.e. a
> enum/menu) our framework is quantising the value, so therefore it does
> not match when queried back.  I hoped this could be fixed by correctly
> publishing the parameter step value, however there apparently is no
> such field, only min and max.
> 
> So what is the correct way to deal with this?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to