Microsoft DirectX 8.0 (Visual Basic) |
Sends a performance message containing information about a MIDI patch change.
object.SendPatchPMSG( _ lTime As Long, _ flags As Long, _ channel As Long, _ instrument As Byte, _ byte1 As Byte, _ byte2 As Byte)
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DMUS_E_NO_MASTER_CLOCK |
DMUS_E_ALREADY_SENT |
DMUS_E_INVALIDARG |
If the time of the message is set to 0 and the flags parameter contains DMUS_PMSGF_REFTIME, the message is cued to go out immediately.