Re: ComponentRefcon
Re: ComponentRefcon
- Subject: Re: ComponentRefcon
- From: Doug Wyatt <email@hidden>
- Date: Mon, 11 Feb 2002 23:03:07 -0500
If it's your AudioUnit, then you can add a property (see
AudioUnitProperties.h for the ranges reserved for Apple and available
for you) and do whatever you like with it.
If it's someone else's AudioUnit, there's no place I know of for you to
do that. The component instance owns its own refCon. You'll notice in
the AudioUnit sample code that we implement AU's as C++ objects, and use
the component refCon to store a pointer to the AU C++ object.
Doug
On Monday, February 11, 2002, at 11:35 , andybull wrote:
What are good reasons for using or *not* using SetComponentRefcon(), (I
don't have the headers in front of me right now, but I think that's
what the
function name is).
This probably hilights a miscomprehension on my part, but it seems to me
that the refcon would only apply to the *single* component, as opposed
to a
seperate refcon for each instantiated ComponentInstance, am I right ?
I'm looking for a way to store a pointer to some app specific data in an
open AudioUnit.
_______________________________________________
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.