The midiStreamStop function turns off all notes on all MIDI channels for the specified MIDI output device.
MMRESULT midiStreamStop(
HMIDISTRM hms
);
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following:
Value | Description | ||
---|---|---|---|
MMSYSERR_INVALHANDLE | The specified device handle is invalid. |
When you call this function, any pending system-exclusive or stream output buffers are returned to the callback mechanism and the MHDR_DONE bit is set in the dwFlags member of the MIDIHDR structure.
While the midiOutReset function turns off all notes, midiStreamStop turns off only those notes that have been turned on by a MIDI note-on message.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Musical Instrument Digital Interface (MIDI) Overview, MIDI Functions, midiStreamOpen, MIDIHDR, midiOutReset