BASS.NET API for the Un4seen BASS Audio Library

MidiMIDI_Disconnect Method

BASS.NET API for the Un4seen BASS Audio Library
Disconnects a MIDI input device from a MIDI thru or output device, or disconnects a MIDI thru device from a MIDI output device.

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

public static MIDIError MIDI_Disconnect(
	IntPtr handleA,
	IntPtr handleB


Type: SystemIntPtr
Handle to a MIDI input device or a MIDI thru device.
Type: SystemIntPtr
Handle to the MIDI output device to be disconnected.

Return Value

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

MIDI input, output, and thru devices can be connected by using the MIDI_Connect(IntPtr, IntPtr) function. Thereafter, whenever the MIDI input device receives event data in an MIM_DATA message, a message with the same event data is sent to the output device driver (or through the thru driver to the output drivers).
See Also