BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_Connect Method BASS.NET API for the Un4seen BASS Audio Library
Connects a MIDI input device to a MIDI thru or output device, or connects a MIDI thru device to a MIDI output device.

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.0
Syntax

public static MIDIError MIDI_Connect(
	IntPtr handleA,
	IntPtr handleB
)

Parameters

handleA
Type: SystemIntPtr
Handle to a MIDI input device or a MIDI thru device (for thru devices, this handle must belong to a MIDI output device).
handleB
Type: SystemIntPtr
Handle to the MIDI output device or thru device.

Return Value

Type: MIDIError
Returns 0 if successful or an error code otherwise. For possible error values see MIDIError.
Remarks

After calling this function, the MIDI input device receives event data in an MIM_DATA message whenever a message with the same event data is sent to the output device driver.

A thru driver is a special form of MIDI output driver. The system will allow only one MIDI output device to be connected to a MIDI input device, but multiple MIDI output devices can be connected to a MIDI thru device. Whenever the given MIDI input device receives event data in an MIM_DATA message, a message with the same event data is sent to the given output device driver (or through the thru driver to the output drivers).

See Also

Reference