Open Psychlist1972 opened 7 months ago
This will be implemented in Developer Preview 6
Keeping this open due to bug reports of it not working in DP6.
Issue #360 is the related issue
Still working on this, FYI.
Should this callback be added using the watcher ? Currently DP6 code for the watcher does not have a property for this. Something alike auto revokeOnWatcherDeviceReconnected = watcher.Reconnected(OnWatcherDeviceReconnected);
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.