• 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: Visually grouping AU parameters in generic view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Visually grouping AU parameters in generic view


  • Subject: Re: Visually grouping AU parameters in generic view
  • From: Cynthia Maxwell <email@hidden>
  • Date: Mon, 12 Mar 2007 21:32:56 -0700

Hello,

They should work automatically if you specify the following:

1. In GetParameterInfo, define which clump each parameter belongs to by adding a call to HasClump in the defintion. i.e.
case kParam_Delay:
AUBase::FillInParameterName (outParameterInfo, kParameterDelay, false);
AUBase::HasClump (outParameterInfo, 1); // in this case the clumpID is 1


2. In GetProperty, match clumpIDs to strings. i.e.
	case kAudioUnitProperty_ParameterClumpName:
	{
			ComponentResult		theResult = noErr;

if(inScope != kAudioUnitScope_Global) return kAudioUnitErr_InvalidScope;

AudioUnitParameterNameInfo &info = *((AudioUnitParameterNameInfo *) outData);

switch(info.inID)
{
case 1: CFRetain (kDelay_Name); info.outName = kDelay_Name; break; // case number matches the above call to HasClump
...
where the string kDelay_Name has been defined as:
static CFStringRef kDelay_Name = CFSTR("delay");


Cheerio

On Mar 12, 2007, at 12:03 PM, email@hidden wrote:

Message: 1
Date: Sun, 11 Mar 2007 20:56:25 +0100
From: Frank Schoep <email@hidden>
Subject: Visually grouping AU parameters in generic view
To: CoreAudio API Mailing List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hello everyone,

Over the past weeks and with many thanks to Michael Hopkins I've been
able to implement a lot of nice features in my new Audio Unit.

Right now, I'm wondering if it's possible to visually group
parameters like in AUFilter (with captions) or AUMerger (without
captions) using the generic view. I know I'm pushing the limits of
these generic views, but I'm a bit reluctant to creating and
maintaining a custom GUI, because it brings a lot of extra work with it.


I have tried several kAudioUnitParameterFlag values, like _Group
(which seemed obvious) and _HasClump, but I can't seem to find
documentation on this topic and they don't work automatically. I've
tried Google with several parameter names, but I don't get any
descriptive results or useful sample code.

Can anyone enlighten me if these kind of tricks are possible and how
to accomplish them? Thanks in advance for your replies.

With kind regards,

Frank Schoep

_______________________________________________ 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
  • Prev by Date: Re: what would cause QTSetComponentProperty to fail with a kAudioUnitErr_InvalidPropertyValue err?
  • Next by Date: Re: Broadcast Wave format - .bwf
  • Previous by thread: Re: Visually grouping AU parameters in generic view
  • Next by thread: ExtAudioFileRead returns empty frames
  • Index(es):
    • Date
    • Thread