Re: AudioHardwarePlugin, caching reference to plugin instance
Re: AudioHardwarePlugin, caching reference to plugin instance
- Subject: Re: AudioHardwarePlugin, caching reference to plugin instance
- From: Jeff Moore <email@hidden>
- Date: Tue, 15 Aug 2006 18:39:53 -0700
The AudioHardwarePlugInRef is something you create yourself, usually
in the type's factory function. What you do with it is your business.
You have complete freedom in managing it. Since all you are doing is
making a method call on yourself, I'd say that you probably don't have
to worry about the ref count.
On Aug 15, 2006, at 6:13 PM, Alex Sheh wrote:
I have an AudioHardwarePlugin and I would like to make calls
internally to DeviceStop/Start functions (my driver is a virtual
driver and I want to allow the user to dynamically change the actual
target driver that I am virtualizing). This requires that I be able
to pass in a reference to the plugin instance AudioHardwarePluginRef
as a function argument. The way I’m doing it now is that I cache
the ref into a static global when Initialize gets called, and then
use this ref later on when the user changes the target driver as an
argument to DeviceStop/Start. Is this safe to do or do I need to
worry about the ref changing underneath somehow?
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden