Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
- Subject: Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
- From: Marc Poirier <email@hidden>
- Date: Tue, 7 Dec 2004 13:40:55 -0500
On Dec 7, 2004, at 12:18 PM, Stefan Gretscher wrote:
I just stumbled across this in AudioUnitProperties.h:
// if the "unit" field contains a value not in the enum above, then
assume kAudioUnitParameterUnit_Generic
typedef struct AudioUnitParameterInfo
{
char name[52]; // UTF8 encoded C string, may be treated as 56
characters
// if kAudioUnitParameterFlag_HasCFNameString not set
CFStringRef unitName; // only valid if
kAudioUnitParameterFlag_HasUnitName
UInt32 clumpID; // only valid if
kAudioUnitParameterFlag_HasClump
CFStringRef cfNameString; // only valid if
kAudioUnitParameterFlag_HasCFNameString
AudioUnitParameterUnit unit;
Float32 minValue;
Float32 maxValue;
Float32 defaultValue;
UInt32 flags;
} AudioUnitParameterInfo;
The comment for unitName mentions
kAudioUnitParameterFlag_HasCFNameString - is this a typo or is this a
new flag that hasn't made it into the headers yet?
It's a typo.
If it is a typo, how to decide whether the unitName is valid or not?
Check to see if the unit value is kAudioUnitParameterUnit_CustomUnit
Marc
_______________________________________________
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