Re: parameters not showing up in host
Re: parameters not showing up in host
- Subject: Re: parameters not showing up in host
- From: Marc Poirier <email@hidden>
- Date: Tue, 14 Jan 2003 16:23:43 +0100 (CET)
>
The 'dummy parameters' in the SimpleEffectUnit AU example don't show up
>
in any of the AU hosts' generic editors, which leads me to believe I
>
have to do something to let the host know I have parameters to open the
>
generic UI for.
>
>
I'm setting all the names, minvalue, maxvalue, flags, etc in
>
SampleEffectUnit::GetParameterInfo. From the looks of the PlayEffect
>
host example, I need to somehow register a component that indicates
>
that I have parameters, and apparently the sampleEffectUnit sample code
>
isn't doing this (or isn't doing it to v2 spec.) Does anyone know what
>
changes I need to make to have my parameters appear in the generic
>
editor?
There are two common mistakes that I can think of:
(1) You didn't set the parameter flags correctly in GetParameterInfo.
Make sure that they are readable and writable:
outParameterInfo.flags = kAudioUnitParameterFlag_IsReadable
| kAudioUnitParameterFlag_IsWritable;
(2) You didn't add them to the parameter map in your plugin's
constructor. AUBase uses an std vector to store the parameter IDs, so all
you need to do is go through and do an AUBase::SetParameter (if you've
overridden that implementation) for each parameter to make sure that
AUBase "knows" about them and will provide them to a host in a request for
the parameter list property.
Marc
_______________________________________________
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.