• 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
Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
      • From: Stefan Gretscher <email@hidden>
References: 
 >kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag? (From: Stefan Gretscher <email@hidden>)

  • Prev by Date: Re: Audio Unit not seen
  • Next by Date: mic'ed input > audio unit effect > output
  • Previous by thread: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
  • Next by thread: Re: kAudioUnitParameterFlag_HasUnitName - typo or undocumented flag?
  • Index(es):
    • Date
    • Thread