Re: BusCount (Was: ClassInfo & PresentPreset confusion)
Re: BusCount (Was: ClassInfo & PresentPreset confusion)
- Subject: Re: BusCount (Was: ClassInfo & PresentPreset confusion)
- From: Pavol Markovic <email@hidden>
- Date: Sat, 5 Nov 2005 13:39:00 +0100
On Nov 5, 2005, at 12:56 PM, Hae-seong, Zo wrote:
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().
Hello,
I've implemented my AU class derived from MusicDeviceBase,
and my AU has no input, ans has 1 or 2 stereo buses.
So the contructor seems like the below:
...
MyAU::MyAU(AudioUnit component)
: MusicDeviceBase(component, 0, 2) // I think I have no choice
but 2
{
...
}
...
This is correct.
In Initialize(), Outputs().GetNeumberOfElements() always returns 2,
no matter it's loaded from 'Stereo' or 'Multi-channel' menu in Logic 7.
I want that it returns 1 from 'Stereo', and 2 from 'Multi-channel'.
What am I wrong?
Have you implemented the BusCountWritable method as described above?
Can you log your SetBusCount method calls to see arguments Logic passes
there?
Also try to set your AU component version to 0, to be always scanned by
auval tool while you're working on development builds.
And, is it possible to see the output bus tracks from the virtual
instrument in Logic,
like in the Cubase with VST version?
You need to assign additional instrument outputs (your second bus) to
Aux bus input.
Best,
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