Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: ComponentRefcon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ComponentRefcon



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.
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.