• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MyVolumeUnit example.. does not 'pan'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: MyVolumeUnit example.. does not 'pan'
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Enumerating and switching audio devices (NEWBIE)
  • Next by Date: AudioBuffer fields in AudioUnitRender
  • Previous by thread: Re: MyVolumeUnit example.. does not 'pan'
  • Next by thread: Re: MyVolumeUnit example.. does not 'pan'
  • Index(es):
    • Date
    • Thread