• 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: Channels and frames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Channels and frames


  • Subject: Re: Channels and frames
  • From: William Stewart <email@hidden>
  • Date: Tue, 25 Oct 2005 11:36:40 -0700

John

MaxFrames will generally *only* be allowed to be set on you when your AU is NOT initialised. Thus, when you are initialised, you should (must!) be looking at the max frames to guide your AUs decisions about allocations, etc... So, in all likelihood, you may not actually want to overide this call, but rather just be using it when your AU is initialised.

Bill

On 25/10/2005, at 7:35 AM, Marc Poirier wrote:

On Oct 25, 2005, at 10:28 AM, john smith wrote:

Hi,

I'm creating some AU's, based on the XCode template (using Carbon).

My current problems are that I need to do the following:

A: Tell the host my channel configuration (for instance mono -> stereo, stereo -> stereo, no inputs -> 8 stereo outputs, etc. etc.). The "no inputs" part can wait a bit if it's complicated, at this point I'm concentrating on effect plug-ins.

Check the following documentation:

/Developer/Examples/CoreAudio/Documentation/AudioUnits/Topics/ au_properties.html#kAudioUnitProperty_SupportedNumChannels

/Developer/Examples/CoreAudio/Documentation/AudioUnits/SDK/Classes/ AUBase.html#SupportedNumChannels

/Developer/Examples/CoreAudio/Documentation/AudioUnits/ IOChannelConfigurations.rtf


B: Be notified about the max buffer size I may receive.

Override SetMaxFramesPerSlice() like so:

void YourPluginClass::SetMaxFramesPerSlice(UInt32 nFrames)
{
    AUBase::SetMaxFramesPerSlice(nFrames);
    // now do whatever you want to be aware of the change
}


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

--
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
________________________________________________________________________ __


_______________________________________________
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


References: 
 >Channels and frames (From: "john smith" <email@hidden>)
 >Re: Channels and frames (From: Marc Poirier <email@hidden>)

  • Prev by Date: Re: Setting the quality of AUTimePitch unit
  • Next by Date: Error -1501 after playing system sound
  • Previous by thread: Re: Channels and frames
  • Next by thread: Re: Channels and frames
  • Index(es):
    • Date
    • Thread