Device unplugged, how application should handle the situation?
Device unplugged, how application should handle the situation?
- Subject: Device unplugged, how application should handle the situation?
- From: Rustam Muginov <email@hidden>
- Date: Thu, 10 Nov 2005 12:34:30 +0300
Hello all.
Suppose my application have IOProc attached and running to the
AudioDevice, as well as a some listeners to the properies, like
kAudioDevicePropertyDeviceIsAlive.
Then application discovered that device is no more alive, either being
notified by global property kAudioHardwarePropertyDevices or by
device-bound property kAudioDevicePropertyDeviceIsAlive.
The AudioHardware.h header says about
kAudioDevicePropertyDeviceIsAlive: "After receiving notification on
this property, any AudioDeviceID's referring to the destroyed device
are invalid. ".
Does this mean application could not remove property listeners and stop
then remove IOProc from the device which gone?
Does this mean such "clean-up" is not necessary, and after device is
gone it is guaranteed then IOProc attached to that device never would
be called?
Are where any leaks in such situation, or CoreAudio correctly handle it?
Thank you in advance.
--
Sincerely,
Rustam Muginov
_______________________________________________
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