NOW LOADING

MidiEndpointConnectionSettings


Settings used when creating a connection to a MIDI endpoint
Namespace Windows.Devices.Midi2
Type Name MidiEndpointConnectionSettings
Type WinRT Runtime Class
IDL MidiEndpointConnectionSettings.idl

Pass a MidiEndpointConnectionSettings to MidiSession.CreateEndpointConnection to choose how the connection behaves. You only need one if you want something other than the defaults. Otherwise, call the version of CreateEndpointConnection that takes no settings.

Constructors

Constructor Description
MidiEndpointConnectionSettings() Creates settings with the default values: WaitForEndpointReceiptOnSend is false and AutoReconnect is true
MidiEndpointConnectionSettings(waitForEndpointReceiptOnSend) Creates settings with the WaitForEndpointReceiptOnSend value you choose, and the default AutoReconnect
MidiEndpointConnectionSettings(waitForEndpointReceiptOnSend, autoReconnect) Creates settings with both values you choose

Properties

Property Description
WaitForEndpointReceiptOnSend When true, each send call waits for the service to confirm it got the message before returning. Sending gets slower, but in some cases it’s more reliable
AutoReconnect When true, if the endpoint device disconnects and then comes back while the connection is still open, the connection reconnects to it automatically

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.