Re: MyVolumeUnit example.. does not 'pan'
Re: MyVolumeUnit example.. does not 'pan'
- Subject: Re: MyVolumeUnit example.. does not 'pan'
- From: christian <email@hidden>
- Date: Tue, 8 Mar 2005 15:26:55 +0900
Marc Poirier wrote:
If you want to make a stereo panner, then:
1) you need to declare your SupportedNumChannels() as only stereo, and
2) you will need to override ProcessBufferLists() to do your DSP and
ditch the kernels.
And also (3) if you want to pan mono->stereo or any other M->N then you
need to make sure that you are not processing in place. Based on some
info I dug up in previous posts (probably also from Marc!) I decided to
do it this way for my panner, which is a subclass of AUEffectBase:
virtual ComponentResult Initialize ()
{
// do some of my own init stuff
ComponentResult result = AUEffectBase::Initialize();
// do some more of my own init stuff
// here is the key to getting Mono->Stereo to work with AUEffectBase!
SetProcessesInPlace(
GetOutput(0)->NumberChannels()
== GetInput(0)->NumberChannels()
);
return result;
}
(I hope someone else on the list can point out if this is not right!
But it was the solution so that my effect so far seems to work OK with
M->N channels in Logic, at least...)
Separately, I was looking again at the "AUPannerUnits.text" document
which is sitting in the AudioUnits doc collection.
Is there code in existence anywhere for AUPanner? Is it possible that
it will arrive with the next update of the SDK?
Regards,
christian
_______________________________________________
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