• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Device unplugged, how application should handle the situation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Device unplugged, how application should handle the situation?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: AuVal Error
  • Next by Date: RE: Creating IAC loopback ports
  • Previous by thread: Re: capacity sensor to virtual midi
  • Next by thread: Re: Device unplugged, how application should handle the situation?
  • Index(es):
    • Date
    • Thread