MMRESULT midiOutShortMsg(hMidiOut, dwMsg) | |||
HMIDIOUT hMidiOut; | |||
DWORD dwMsg; |
The midiOutShortMsg function sends a short MIDI message to the specified MIDI output device. Use this function to send any MIDI message except for system-exclusive messages.
hMidiOut
Specifies a handle to the MIDI output device.
dwMsg
Specifies the MIDI message. The message is packed into a DWORD with the first byte of the message in the low-order byte.
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. |
MIDIERR_NOTREADY | The hardware is busy with other data. |
This function may not return until the message has been sent to the output device.
midiOutLongMsg