Re: ClassInfo & PresentPreset confusion
Re: ClassInfo & PresentPreset confusion
- Subject: Re: ClassInfo & PresentPreset confusion
- From: Pavol Markovic <email@hidden>
- Date: Tue, 11 Oct 2005 15:54:35 +0200
On Oct 10, 2005, at 6:57 PM, Michael Kleps wrote:
My AU can also use a stereo channel or four stereo pairs as outputs.
How should I specify my supported configurations? I don't want two
stereo outs or three, I want either ONE or FOUR. How does the plugin
learn about which configuration was chosen by the host? How can I tell
the host which configations are available?
Mike,
You set 4 output buses in constructor, and return supported channel
configuration as { { 0, 2 } }
return true in BusCountWritable(), but override SetBusCount() and
return kAudioUnitErr_InvalidPropertyValue if count is not equal to 1 or
4, otherwise pass the call to superclass.
You know actual number of output buses in Inititalize() call -
Outputs().GetNumberOfElements().
In Render call, you first prepare each output bus with
GetOutput(bus)->PrepareBuffer(inNumberFrames);
and get bus channels with: GetOutput(bus)->GetBufferList();
That's all (I hope).
PM
_______________________________________________
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