kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
- Subject: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
- From: Stefan Gretscher <email@hidden>
- Date: Tue, 7 Dec 2004 18:18:08 +0100
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? If it is a typo, how
to decide whether the unitName is valid or not? (The docs say that
releasing it depends upon the kAudioUnitParameterFlag_CFNameRelease,
but I didn't find where it says when this is valid - there's
kAudioUnitParameterFlag_HasName and kAudioUnitParameterFlag_HasClump
but no kAudioUnitParameterFlag_HasUnitName.
Thanks for clarifying,
Stefan
_______________________________________________
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