The archives from June 2007 had a thread entitled "Device disconnected while
playing".  The original problem: "We are trying to get a notification when
the current MIDI device gets disconnected."   Roger said they look into it,
and suggested where they should look, and what they might look for.

Notification on disconnect is of interest to me, so I took a quick look, and
sure enough, code I insert into the MIM_CLOSE case in winmm_in_callback()
from pmwinmm.c gets run shortly after I disconnect or power down a USB midi
device.  Before I decide how I'm going to make it so this notification is
passed back to my client application, I want to make sure I can catch this
same situation on OSX.  I've found reference to a constant
"kAudioDevicePropertyDeviceIsAlive" but being completely unfamiliar with
CoreMIDI, I don't yet know how to make use of this tiny nugget of
information.  Any suggestions?

Thanks
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to