BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_InClose Method BASS.NET API for the Un4seen BASS Audio Library
Closes the specified MIDI input device.

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

public static MIDIError MIDI_InClose(
	IntPtr handle


Type: SystemIntPtr
Handle to the MIDI input device. If the function is successful, the handle is no longer valid after the call to this function.

Return Value

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

If there are input buffers that have been sent by using the MIDI_InAddBuffer(IntPtr, IntPtr) function and have not been returned to the application, the close operation will fail. To return all pending buffers through the callback function, use the MIDI_InReset(IntPtr) function.
See Also