The midiStreamPause function pauses playback of a specified MIDI stream.
MMRESULT midiStreamPause(
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. |
The current playback position is saved when playback is paused. To resume playback from the current position, use the midiStreamRestart function.
Calling this function when the output is already paused has no effect, and the function returns MMSYSERR_NOERROR.
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, MIDIEVENT, midiStreamRestart