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.17.2
Syntax
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: MIDIErrorReturns 0 if successful or an error code otherwise. For possible error values see MIDIError.
Remarks
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