[Media_api] MIDI device disconnect detection
Devon McDormand
devon at adventus.com
Wed Mar 19 15:46:47 PDT 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.create.ucsb.edu/pipermail/media_api/attachments/20080319/fd17e745/attachment.html
More information about the media_api
mailing list