Re: Clump name and AULab
Re: Clump name and AULab
- Subject: Re: Clump name and AULab
- From: philippe wicker <email@hidden>
- Date: Thu, 27 Jul 2006 09:48:53 +0200
On Jul 27, 2006, at 12:01 AM, William Stewart wrote:
On 26/07/2006, at 1:53 PM, William Stewart wrote:
The host uses the clumpID (not the paramID) to get the names for
the clumps. You set the clumpID for a param in the normal way of
course...
You have to implement GetPropertyInfo too of course:
case kAudioUnitProperty_ParameterClumpName:
if(inScope != CHECK FOR VALID SCOPE ) return
kAudioUnitErr_InvalidScope;
outDataSize = sizeof(AudioUnitParameterNameInfo );
outWritable = false;
break;
Then in GetProperty - you have to retain the string = the client
will release it:
case kAudioUnitProperty_ParameterClumpName:
{
if(inScope != CHECK FOR VALID SCOPE) return
kAudioUnitErr_InvalidScope;
AudioUnitParameterNameInfo &info = *((AudioUnitParameterNameInfo
*)outData);
switch(info.inID)
{
case 1: CFRetain(kGain_Name); info.outName = kGain_Name; break;
case 2: CFRetain(kCrossoverFrequencies_Name); info.outName =
kCrossoverFrequencies_Name; break;
case 3: CFRetain(kBand1_Name); info.outName = kBand1_Name; break;
The element isn't being used in the get property call
HTH
Thanks Bill, it's working now.
Bill
_______________________________________________
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