• 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 about mono/stereo handling in AUs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about mono/stereo handling in AUs


  • Subject: Question about mono/stereo handling in AUs
  • From: Sean Costello <email@hidden>
  • Date: Fri, 25 Sep 2009 09:32:44 -0700

Hi all:

I have a GUI-less Audio Unit, that is currently stereo only (stereo-in, stereo-out). The plugin sums the input to mono, and creates a stereo image out of that, so I am using ProcessBufferLists() for my render function.

Questions:

1) Right now, I specify the number of channels with the following code:

//--------------------------------------------------------------------------------
UInt32 ValhallaFreqEcho::SupportedNumChannels(const AUChannelInfo ** outChannelInfo)
{
static AUChannelInfo plugChannelInfo[] = { {2, 2} };


if (outChannelInfo != NULL)
*outChannelInfo = plugChannelInfo;


return sizeof(plugChannelInfo) / sizeof(plugChannelInfo[0]);
}


Is there anything else I need to do to prevent the plugin from being instantiated on a mono track?

2) If I want to have several different channel modes (mono-in/mono-out, mono-in/stereo-out, stereo-out/stereo-out), what is the best way of accomplishing this? Should I have several render functions that can be called from ProcessBufferLists(), and use a switch() statement to choose the desired one? Can anyone suggest a more efficient method?

3) From ProcessBufferLists(), how should I be determining the input/output channel count of the calling function?

Thanks for your help,

Sean Costello
 _______________________________________________
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: Question about mono/stereo handling in AUs
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Reduce Audio Time Latency
  • Next by Date: Re: kAudioFileAAC_ADTSType for aac plus?
  • Previous by thread: Re: Reduce Audio Time Latency
  • Next by thread: Re: Question about mono/stereo handling in AUs
  • Index(es):
    • Date
    • Thread