Replies: 1 comment 1 reply
-
Hi, Thanks for using the library! Unfortunately it's not possible to catch MIDI device plugging/unplugging in Windows. Yes, you can call GetAll every second, but that's not a solution. What if two devices have the same name? When one is unplugged and another one is plugged, you're not able to determine what device plugged and what unplugged. With your algorithm you will think the first device is plugged again, but in fact the second one is plugged. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for a most excellent library!
I'm not sure if this is possible or not, but is there any way to monitor if a MIDI device has disconnected? I'm thinking of simply running GetAll() every few seconds to see if the device list has changed, but that doesn't really feel great. My use case is that if someone trips over the MIDI keyboard cord I want to disconnect from the port and make it possible to re-connect without having to force a restart of everything.
Beta Was this translation helpful? Give feedback.
All reactions