Re: auval problems (channels)
Re: auval problems (channels)
- Subject: Re: auval problems (channels)
- From: "Luke Hollingworth" <email@hidden>
- Date: Thu, 02 Nov 2006 10:27:45 +0000
Hi John,
I too have had these problems and it has really bugged me, I am a Newbie and
have just got my AU functioning for 1 input and two outputs correctly within
the validations on AUVal and Logic, so maybe the code I used will help;
In my constructor I call the following code but I am unsure as exactly how
to alter it for your situation, maybe you should check out exactly how the
function SetCanonical works
CreateElements();
CAStreamBasicDescription in = GetInput(0)->GetStreamFormat();
in.SetCanonical (1, false); //false is for non-interleaved - doesn't
really matter for mono
GetInput(0)->SetStreamFormat(in);
CAStreamBasicDescription out = GetOutput(0)->GetStreamFormat();
out.SetCanonical (2, false); // 2 for two outputs false is for
non-interleaved - doesn't really matter for mono
GetOutput(0)->SetStreamFormat(out);
I also implement the function
UInt32 AUEffectBase::SupportedNumChannels(const AUChannelInfo **
outChannelInfo)
{
static AUChannelInfo plugChannelInfo = {1, 2}; //here I set the number of
input and outputconfigurations (for yours I would try
{{1,1},{1,2},{2,1},{2,2}} )
if (outChannelInfo != NULL)
*outChannelInfo = &plugChannelInfo;
return sizeof(plugChannelInfo)/sizeof(AUChannelInfo);
}
I included extra code in initialize but it is a straight copy from the
mailing list post,
http://lists.apple.com/archives/coreaudio-api/2003/May/msg00316.html
so check that out.
Hope I could help
Luke
_________________________________________________________________
Windows LiveĀ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb
_______________________________________________
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