Suggestions for volume controls?
Suggestions for volume controls?
- Subject: Suggestions for volume controls?
- From: Jeff DuMonthier <email@hidden>
- Date: Sun, 12 Feb 2006 11:03:28 -0500
I'm trying to convert a VST plugin to an audio unit and I'm wondering
how to do a volume control, among others. Eventually I may use a Cocoa
view, but it's just the default interface for now. In VST the control
just returned a value from 0.0 to 1.0 and I have some custom code for
linear, log or log-linear parameter normalization I reuse all the time
that made it easy to do a log-linear control from -INF to +6dB. I
haven't seen any documentation on how to do various types of controls,
but it looks like you just define a linear range of values and select a
unit. I'm assuming if I set the range from -100 to +6 and use
kAudioUnitParameterUnit_Decibels, the value it will return will be
between -100.0 and +6.0. It doesn't display in dB and convert to a
gain does it? How would I do a volume control that went from -INF to
+6dB without overloading all the built in code, or is that the only
option? What have others done for this? I'd rather not have to
overload code that handles parameter automation because I really don't
want to have to reimplement that.
Is there some documentation or some good examples somewhere on how to
do different controls like this? I may also have to do some which are
ranges with only discrete values in the range allowed. I suppose I
could just pretend it's linear even though it isn't.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden