Re: Channels and frames
Re: Channels and frames
- Subject: Re: Channels and frames
- From: William Stewart <email@hidden>
- Date: Tue, 25 Oct 2005 12:53:08 -0700
John,
On 25/10/2005, at 7: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.
I'm not sure what you are trying to tell the host. AUs have a default
format - this is the format of each of the input and output elements
that they have when they are created. auval prints this out for each AU.
In the AUBase implementation, the format is set on these input and
output elements using the Get and Set StreamFormat APIs of these
element classes
The SupportedNumChannels property is used to tell a host what channel
capabilities your AU has - this is described in some detail in the
IOConfigurations document. The host parses this information and then
uses it to guide its configuration choices that it presents to the
user for this AU (can it do mono-stereo for instance).
If you look at the implementatation of AUEffectBase::Initialise you
will see how this property interacts with the formats on the
different input and output bus(es) - In this call, the aim is for the
AU to validate that it is being initialised to a set of channel
counts that are legal (i.e. that it is able to deal with).
auval is a tool that will try to stress test this implementation/
feature. You could run this tool with either the SampleEffect or the
DebugDispatcher AUs from the SDK to see exactly what it does...
Bill
Thanks,
Michael Olsen
KeyToSound / PhonoXone
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://
search.msn.com/
_______________________________________________
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