• 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: Michael Kleps <email@hidden>
  • Date: Tue, 11 Oct 2005 17:52:34 +0200

Thanks Pavol. Will try this in a few days with Xphraze & quadraSID

Cheers,
    Mike

Am 11.10.2005 um 15:54 schrieb Pavol Markovic:

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
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>)
 >Re: ClassInfo & PresentPreset confusion (From: Pavol Markovic <email@hidden>)

  • Prev by Date: Re: ClassInfo & PresentPreset confusion
  • Next by Date: OT: GetCurrentEventLoop() leaks?
  • Previous by thread: Re: ClassInfo & PresentPreset confusion
  • Next by thread: Re: ClassInfo & PresentPreset confusion
  • Index(es):
    • Date
    • Thread