AudioHardwarePlugin, caching reference to plugin instance
AudioHardwarePlugin, caching reference to plugin instance
- Subject: AudioHardwarePlugin, caching reference to plugin instance
- From: "Alex Sheh" <email@hidden>
- Date: Tue, 15 Aug 2006 18:13:47 -0700
- Thread-topic: AudioHardwarePlugin, caching reference to plugin instance
Hi,
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?
Thanks,
Alex
_______________________________________________
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