Re: How to detect Audio device add and remove
Re: How to detect Audio device add and remove
- Subject: Re: How to detect Audio device add and remove
- From: Jeremy Sagan <email@hidden>
- Date: Sat, 21 Jun 2003 12:53:49 -0400
I thought, and correct me if I am wrong, that this is an Apple USB
Driver specific problem.
Quattro has its own driver.
Jeremy
On Saturday, June 21, 2003, at 11:59 AM, Chris Reed wrote:
Interesting... I was recently just testing my handling of this
situation, and didn't see any crashes. Specifically, I'm using
MTCoreAudio and handling the audioDeviceDidDie: delegate message.
I was testing with a M-audio USB Quattro.
-chris
On Friday, Jun 20, 2003, at 22:18 US/Central, B.J. Buchalter wrote:
on 6/20/03 8:09 PM, Michael Thornburgh at email@hidden wrote:
using just the HAL, you can register to receive a notification when
the
"kAudioHardwarePropertyDevices" property changes with
AudioHardwareAddPropertyListner().
in MTCoreAudio, a
"MTCoreAudioHardwareDeviceListDidChangeNotification"
notification will be posted to the default notification center, and
the
MTCoreAudioDevice class's delegate will be sent
-audioHardwareDeviceListDidChange.
Be aware that if your app is streaming audio to the device when it is
detached, your app will crash in the HAL's IOProc thread. The
notification
is delivered after the crash, so it is not so good. This did not
happen in
10.1 and 10.2.x where x < some number I don't remember. Apple is
aware of
this, but it is a complicated problem...
Best regards,
B.J. Buchalter
Metric Halo
M/S 601 - Building 8
Castle Point Campus
Castle Point, NY 12511-0601 USA
tel +1 845 831-8600
fax +1 603 250-2451
If you haven't heard ChannelStrip yet, you don't know what you're
missing!
Check out SpectraFoo, ChannelStrip and Mobile I/O at
http://www.mhlabs.com/
Download a 12 day demo from <http://www.mhlabs.com/demo/>
_______________________________________________
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.
_______________________________________________
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.