MMRESULT midiOutReset(hMidiOut) | |||
HMIDIOUT hMidiOut; |
The midiOutReset function turns off all notes on all MIDI channels for the specified MIDI output device. Any pending system-exclusive output buffers are marked as done and returned to the application.
hMidiOut
Specifies a handle to the MIDI output device.
Returns zero if the function was successful. Otherwise, it returns an error number. Possible error returns are:
Value | Meaning |
MMSYSERR_INVALHANDLE | Specified device handle is invalid. |
To turn off all notes, a note-off message for each note for each channel is sent. In addition, the sustain controller is turned off for each channel.
midiOutLongMsg, midiOutClose