• 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: Component from ComponentInstance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Component from ComponentInstance?


  • Subject: Re: Component from ComponentInstance?
  • From: m <email@hidden>
  • Date: Wed, 26 May 2004 02:29:43 -0700

On May 25, 2004, at 9:48 PM, Greg Chapman wrote:

It's true. You can pass a ComponentInstance to the ComponentManager routines that take a Component, and it will figure out what you meant. You can also make a component call passing in an unopened Component where you should pass in a ComponentInstance, and the calls the component will see are Open, <the call you made>, Close. Sometimes useful, sometimes not what you want at all.

Kind of bizarre, but there it is.

I guess it is bizarre that I can pass a ComponentInstance to ComponentManager routines that take a Component. Unfortunately, I really need a way to get from a ComponentInstance to the Component of which it is an instance.

I have an array of available AudioUnits (i.e. Components) that I build at launch time. The user can choose which AudioUnit is instantiated by choosing from this array.

Since I'd like not to re-instantiate an already instantiated unit, I need to know the already instantiated unit's Component so I can compare it to the one chosen by the user.

Surely there's a way?

_murat
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Component from ComponentInstance?
      • From: kelly jacklin <email@hidden>
References: 
 >Re: Component from ComponentInstance? (From: Greg Chapman <email@hidden>)

  • Prev by Date: Re: PowerPC optional instructions
  • Next by Date: Re: Component from ComponentInstance?
  • Previous by thread: Re: Component from ComponentInstance?
  • Next by thread: Re: Component from ComponentInstance?
  • Index(es):
    • Date
    • Thread