[Bug 19803] "Fingerprint" is unclear

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19803

--- Comment #11 from Chris Wilson <cwilso@gmail.com> ---
(In reply to comment #9)
> Actually, I just made an assumption that I'm not sure is valid with all
> platform MIDI APIs: if you unplug device at index 0 while the application is
> running, your reference to a device that was in index 1 still works. I can't
> test this right now, I only have 1 MIDI device home at the moment, does
> anyone know better?

I know in Windows MIDI, once you've grabbed a reference to the device (via
MidiInOpen/MidiInGetID/etc), you have an HMIDIIN or HMIDIOUT handle, which
doesn't change (should continue to work) - but of course, if you enumerated the
devices in a list via midiInGetNumDevs(), called midiInGetDevCaps() to get the
name/etc. BUT NOT A HMIDIIN, THEN disconnected, the list indices are going to
be off.

I think it's similar in CoreMIDI - it all depends when you call
MIDIGetDevice().

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 7 December 2012 23:13:41 UTC