Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.2
Parameters
- handle
- Type: SystemIntPtr
Handle to the MIDI input device.
Return Value
Type: MIDIErrorReturns 0 if successful or an error code otherwise. For possible error values see MIDIError.
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.