BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_OutClose Method BASS.NET API for the Un4seen BASS Audio Library
Closes the specified MIDI output device.

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

public static MIDIError MIDI_OutClose(
	IntPtr handle


Type: SystemIntPtr
Handle to the MIDI output 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 output buffers that have been sent by using the MIDI_OutLongMsg(IntPtr, IntPtr) function and have not been returned to the application, the close operation will fail. To mark all pending buffers as being done, use the MIDI_OutReset(IntPtr) function.
See Also