• 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
Question on clumps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on clumps


  • Subject: Question on clumps
  • From: Bill Stewart <email@hidden>
  • Date: Thu, 31 Jul 2003 23:33:11 -0700

From: Bill Stewart <email@hidden>
Date: Thu Jul 31, 2003 10:28:36 PM US/Pacific
To: email@hidden
Subject: Question on Clumps

This might be me being lazy :)

I'm looking at the code for our generic UI which now supports clumps. Its very simple and straight forward to "reserve" the clumpID of zero to capture those parameters that are not clumped

The logic looks something like this:
UInt32 clumpID = 0;
param.GetClump (clumpID); //no clump, clumpID is left unchanged
map[clumpID].push_back (param);

This deals quite effectively with parameters that aren't clumped at all, and deals with mixtures of clumped and non-clumped parameters if none of these clump ID's are zero. If there is a mixture of non-clumped and clumpID==0, then you'd get these all clumped together... which is probably not what you want.

So, given that the above is simple logic, I imagined that others would appreciate being able to deal with this so simply as well, so I'd propose reserving zero as a value that shouldn't be used by individual AU's

enum {
kAudioUnitClumpID_System = 0
};

Thus, if you have a mixture of clumped parameters and non-clumped parameters, then the non-clumped parameters will be treated as if they are clumped into a clump where the ID is zero.

Does that make sense? Seems like a nice thing to do for us lazy host writers? Is this going to cause any problems for people?

In fact, if we reserve the clumpID==0 for "system" use, then AU's that don't provide explicit clumps, could still provide a name for all of their parameters that aren't clumped (for the GetClumpName property) by just providing support for this system clump

Bill

-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: DefaultOutput puzzler
  • Previous by thread: Bug in DefaultOutputUnit - UsingAudioConverter example?
  • Index(es):
    • Date
    • Thread