• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
      • From: Marc Poirier <email@hidden>
  • Prev by Date: Re: using MTCoreAudio
  • Next by Date: Audio Unit not seen
  • Previous by thread: Re: kAudioDevicePropertyDeviceName and localisation
  • Next by thread: Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
  • Index(es):
    • Date
    • Thread