Re: ParameterValues
Re: ParameterValues
- Subject: Re: ParameterValues
- From: William Stewart <email@hidden>
- Date: Mon, 19 Apr 2004 12:19:41 -0700
And - yes I believe Airy is correct... The full support for
Value-String translation was only completed at the end of last year, so
I doubt current host apps have this working yet...
And
On 17/04/2004, at 8:46 AM, arne wrote:
>
Hi Mike,
>
you're doing it the right way. That you don't see the name in Logic is
>
a Logic thing. Just copy the parameter name also to the
>
AudioUnitParameterInfo name field and Logic will show it. Seems like
>
Logic don't know anything about CFStrings in this context.
The AUBase call described below will do the right thing for you here.
On 17/04/2004, at 6:51 AM, Michael Kleps [reFX] wrote:
>
Hi Bill,
>
>
thanks, I read and tried that. Doesn't work for me. Can somebody post a
>
short example?
In the SDK - SampleEffectUnit
>
>
This is my version:
>
------------------------------------------------------
>
In "GetParameterInfo"
>
>
sInfo.cfNameString = CFStringCreateWithCString(NULL, sInfo.name,
>
kCFStringEncodingISOLatin1);
I'd recommend using the AUBase call to handle the string... In this
case you will be leaking the string as you have to set the param flag
that says that you are creating a new string each time, so the host
will be required to release it. This is documented in the Additional
notes on AU's to do with CF property objects and AUs in
Documentation/CoreAudio/AudioUnits
>
sInfo.unit = kAudioUnitParameterUnit_Generic;
>
sInfo.minValue = 0.0f;
>
sInfo.maxValue = 1.0f;
>
sInfo.defaultValue = 0.0f;
>
sInfo.flags = kAudioUnitParameterFlag_IsReadable |
>
kAudioUnitParameterFlag_IsWritable |
>
kAudioUnitParameterFlag_IsHighResolution |
>
kAudioUnitParameterFlag_HasCFNameString |
>
kAudioUnitParameterFlag_ValuesHaveStrings;
>
------------------------------------------------------
>
>
Now, *HOW* does the host try to retrieve the string for the current
>
value? In "GetProperty"? Example please....
In the Documentation directory the properties involved in this are
described.
>
>
Do I need to do something in "GetPropertyInfo" do the host knows it
>
makes sense to call GetProperty at the time the value changes? What
>
*exaclty* (example)?
Yes.
Bill
>
>
Regards,
>
Mike
>
>
Am 17.04.2004 um 03:18 schrieb William Stewart:
>
>
> Have a look in the latest SDK - there's docs and API there to allow
>
> you to translate between parameter values and the strings that should
>
> be used to display them (and to convert back from a display string to
>
> a value as well)
>
>
>
> Bill
>
>
>
> On 16/04/2004, at 2:24 PM, Michael Kleps [reFX] wrote:
>
>
>
>> Hi all,
>
>>
>
>> how can I use custom parameter value strings like the VST-method
>
>> "getParameterDisplay()"? What I basicly want is that the host calls
>
>> my AU and asks for a string to be displayed for the current value
>
>> (e.g. during automation).
>
>>
>
>> Thanks in advance for any help you can provide.
>
>>
>
>> Cheers,
>
>> Mike
>
>> _______________________________________________
>
>> 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
>
>
>
> ______________________________________________________________________
>
> _
>
> ___
>
> Culture Ship Names:
>
> Ravished By The Sheer Implausibility Of That Last Statement
>
> I said, I've Got A Big Stick [OU]
>
> Inappropiate Response [OU]
>
> Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
>
> ______________________________________________________________________
>
> _
>
> ___
>
_______________________________________________
>
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
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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.