• 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: I/O support issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I/O support issue


  • Subject: Re: I/O support issue
  • From: Marc Poirier <email@hidden>
  • Date: Thu, 30 Sep 2004 16:45:13 -0400

On Sep 30, 2004, at 4:24 PM, Howard Moon wrote:

Hi,

I'm trying to get a audio unit to support mono only, but I'm having trouble doing so. I must be missing something somewhere. I'm returning just the single pair {1,1} for the kAudioUnitProperty_SupportedNumChannels property, but that doesn't seem to be sufficient. My audio unit still shows up on Stereo tracks (or as a mono-to-stereo plug-in in Logic), although it won't load because I check the stream format and report it as invalid if I get a stereo in or out stream.

How do I tell the host (specifically Logic or Digital Performer) that my AU only supports mono, in such a way that it doesn't appear on their menus for stereo tracks?

You didn't post your code so there's no way to comment on what you're doing, but here is sample code that will work:


UInt32 HowardPlug::SupportedNumChannels(const AUChannelInfo ** outChannelInfo)
{
static AUChannelInfo plugChannelInfo = {1, 1};
if (outChannelInfo != NULL)
*outChannelInfo = &plugChannelInfo;


	return 1;
}


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: I/O support issue
      • From: Howard Moon <email@hidden>
References: 
 >I/O support issue (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Largest channel input count for any Core Audio Device ?
  • Next by Date: Re: I/O support issue
  • Previous by thread: I/O support issue
  • Next by thread: Re: I/O support issue
  • Index(es):
    • Date
    • Thread