Re: Channels and frames
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