BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_InStart Method BASS.NET API for the Un4seen BASS Audio Library
Starts MIDI input on the specified MIDI input device.

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

public static MIDIError MIDI_InStart(
	IntPtr handle
)

Parameters

handle
Type: SystemIntPtr
Handle to the MIDI input device.

Return Value

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

This function resets the time stamp to zero. Time stamp values for subsequently received messages are relative to the time that this function was called.

All messages except system-exclusive messages are sent directly to the client when they are received. System-exclusive messages are placed in the buffers supplied by the MIDI_InAddBuffer(IntPtr, IntPtr) function. If there are no buffers in the queue, the system-exclusive data is thrown away without notification to the client and input continues. Buffers are returned to the client when they are full, when a complete system-exclusive message has been received, or when the MIDI_InReset(IntPtr) function is used. The Data member of the MIDI_HEADER structure will contain the actual data received.

Calling this function when input is already started has no effect, and the function returns zero.

See Also

Reference