microsoft / MIDI

Windows MIDI Services
MIT License
285 stars 23 forks source link

[Feature] Consider making it possible for a MidiEndpointConnection to be automatically reconnected after a device has disconnected/reconnected #320

Open Psychlist1972 opened 2 months ago

Psychlist1972 commented 2 months ago

If a device is disconnected and reconnected, currently, the API requires creating a new connection, or at least re-opening the existing connection. But in cases where this happens due to something transient like putting the PC into suspend mode, the device cannot be reconnected without creating a new connection instance through the MidiSession.

Consider providing a way to easily reconnect automatically when a device reappears (API would control) as long as the MidiEndpointConnection instance exists.

Psychlist1972 commented 2 months ago

This will be implemented in Developer Preview 6