Re: Component from ComponentInstance?
Re: Component from ComponentInstance?
- Subject: Re: Component from ComponentInstance?
- From: Marc Poirier <email@hidden>
- Date: Tue, 25 May 2004 22:44:57 -0400 (EDT)
You're not missing anything obvious, but however you are not in the know.
;-) It's actually something that's pretty undocumented (I think it's only
mentioned in some old QuickTime tech note), but you can simply cast a
ComponentInstance to Component and that will just magically work. You can
use that for the various Component Manager API functions that take
Component arguments. You can actually also do the other way around,
resulting in the Componenent being Opened, then the call requiring the
ComponentInstance made, and then Closed automatically for you. Or so I
have been told by someone on the QuickTime API listserv, though I have not
actually tried that myself (I have tried casting ComponentInstance to
Component, though, and that has always worked for me).
Marc
On Tue, 25 May 2004, m wrote:
>
I must be missing something obvious.
>
>
Given a ComponentInstance, how does one recover the Component of which
>
it is an instance?
>
>
_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.