• 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: ClassInfo & PresentPreset confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ClassInfo & PresentPreset confusion
      • From: Michael Kleps <email@hidden>
    • RE: ClassInfo & PresentPreset confusion
      • From: "Muon Software Ltd - Dave" <email@hidden>
References: 
 >ClassInfo & PresentPreset confusion (From: Michael Kleps <email@hidden>)
 >Re: ClassInfo & PresentPreset confusion (From: Marc Poirier <email@hidden>)
 >Re: ClassInfo & PresentPreset confusion (From: Michael Kleps <email@hidden>)
 >Re: ClassInfo & PresentPreset confusion (From: Marc Poirier <email@hidden>)
 >Re: ClassInfo & PresentPreset confusion (From: Michael Kleps <email@hidden>)

  • Prev by Date: Re: MTCoreAudio, CAAudioFileWriter and conversion
  • Next by Date: RE: ClassInfo & PresentPreset confusion
  • Previous by thread: Re: ClassInfo & PresentPreset confusion
  • Next by thread: RE: ClassInfo & PresentPreset confusion
  • Index(es):
    • Date
    • Thread