Re: Component from ComponentInstance?
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.