Re: AudioUnitParameterUnit for ms
Re: AudioUnitParameterUnit for ms
- Subject: Re: AudioUnitParameterUnit for ms
- From: Marc Poirier <email@hidden>
- Date: Wed, 2 Oct 2002 20:38:58 +0200 (CEST)
I am not making an app, I'm making plugins. I wasn't thinking of this as
something that hosts have to do extra work to support. Aside from
displaying "ms" rather than "sec" on a default editor, what else would
there be to support?
I was only suggesting it because a plugin I'm working with uses ms as the
value for its parameter (because that is just a more comfortable value for
that parameter) and, since _Seconds is the closest thing to that value,
I'm using that for the parameter's unit, but it would be nicer if I could
say it was ms and then the default interface would say "600 ms" or
whatever rather than "600 sec" as it does now.
My suggestion didn't have anything to do with precision, only with
options, being able to use the most sensible unit for a given parameter.
Anyway, I'm not dying for this to make it into AU, but I thought it would
be nice and wouldn't cause any difficulties to include, so that's why I
suggested it...
Marc
On Wed, 2 Oct 2002, Luke Bellandi wrote:
>
That should be an application-level conversion. It's unnecessary extra work
>
for developers to have to support more than one unit of time when hosting
>
AU's. It's a Float32, which is orders of magnitude more precise than any
>
foreseeable sample-rate could make use of (when using units of seconds.)
>
>
Your app could choose to a representative unit based on the min & max values
>
of the parameters. For example, if the unit is seconds, and the max value
>
is less than 1, you could choose to represent that parameter with units of
>
milliseconds.
>
>
Best,
>
Luke Bellandi
>
CoreAudio
>
>
>
On 10/2/02 10:37 AM, "Marc Poirier" <email@hidden> wrote:
>
>
> How about it, in addition to kAudioUnitParameterUnit_Seconds there could
>
> also be kAudioUnitParameterUnit_Milliseconds, yes?
_______________________________________________
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.