The midiStreamOut function plays or queues a stream (buffer) of MIDI data to a MIDI output device.
MMRESULT midiStreamOut( HMIDISTRM hms, LPMIDIHDR pmh, UINT cbmh );
Handle to a MIDI stream. This handle must have been returned by a call to the midiStreamOpen function. This handle identifies the output device.
Pointer to a MIDIHDR structure that identifies the MIDI buffer.
Size, in bytes, of the MIDIHDR structure.
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.
||The system is unable to allocate or lock memory.|
||The output buffer pointed to by lpMidiHdr is still playing or is queued from a previous call to midiStreamOut.|
||The header pointed to by lpMidiHdr has not been prepared.|
||The specified device handle is invalid.|
||The pointer specified by lpMidiHdr is invalid.|
For the current implementation of this function, the buffer must be smaller than 64K.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||mmeapi.h (include Windows.h)|