• 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: Multichannel AU bus names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multichannel AU bus names


  • Subject: Re: Multichannel AU bus names
  • From: Brian Willoughby <email@hidden>
  • Date: Thu, 14 Feb 2008 14:10:21 -0800

Oops. I made a couple of assumptions. First, that UltraBeat has two different strings for it's output bus, "UltraBeat 3/4" when there is enough space, and "UB 3/4" when there is less space. Second, I assumed that Martin wanted the ability to have both short and long names for his plugin output bus. If someone wanted to do what I was suggesting, they'd actually need to override the AUElement class implementation of GetName(), and I wouldn't imagine that is a supported way to fit bus names into varying amounts of space.

Seems that Martin really just wants to set the bus names to a string of his choosing. None of the fancy stuff. So Bill's answer addresses this directly.

Brian


On Feb 14, 2008, at 10:25, William Stewart wrote:
The bus names will show up in AULab - the AUElement class has the space for them. All you need to do is set the names. Something like this in your constructor:


CreateElements(); //makes sure the elements are created first!
GetInput(0)->SetName (CFSTR("My Input Element Name"); // presuming of course you have an input element
GetOutput(0)->SetName (CFSTR("My Output Element Name");


Bill

On Feb 14, 2008, at 10:03 AM, Brian Willoughby wrote:
On Feb 14, 2008, at 02:55, Martin Saleteg wrote:
I am searching in docs and sources for a place to change the output names for the busses of multichannel plugins. In Logic 8, if I have a long plugin name like "My Very Long Plugin", the main stereo output shows up as "My Very" and due to limited space, the following output buses will show the same, not very informative. On the other hand, UltraBeat shows the extra outputs as "UB 3/4", I would like to implement the same behavior "MVLP 3/4" for my plugin. What do I need to do?

case kAudioUnitProperty_ParameterClumpName:
{
AudioUnitParameterIDName &name = *(AudioUnitParameterIDName *) outData;
name.outName = NULL;
if (name.inID && name.inID < sizeof(kParamClumpNames)/sizeof (kParamClumpNames[0]))
{
if (kAudioUnitParameterName_Full == name.inDesiredLength
|| CFStringGetLength(kParamClumpNames[name.inID]) <= name.inDesiredLength)
name.outName = kParamClumpNames[name.inID];
else
name.outName = kParamShortClumpNames[name.inID];
name.outName = CFStringCreateCopy(NULL, name.outName);
}
return noErr;
}
_______________________________________________
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: Multichannel AU bus names
      • From: Stefan Gretscher <email@hidden>
    • rookie cocoa AU question
      • From: "Kevin Dixon" <email@hidden>
References: 
 >Multichannel AU bus names (From: Martin Saleteg <email@hidden>)
 >Re: Multichannel AU bus names (From: Brian Willoughby <email@hidden>)
 >Re: Multichannel AU bus names (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Streaming to AudioQueue without having random access to data?
  • Next by Date: rookie cocoa AU question
  • Previous by thread: Re: Multichannel AU bus names
  • Next by thread: rookie cocoa AU question
  • Index(es):
    • Date
    • Thread