CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode VMIDILinkOut_SendEventToChannel ( CPHOBJECT const  hVMIDILinkOut,
CPUINT8 const  bChannel,
CPEVENTMSG const *const  pMessageData 
)

Send an event message to the specified MIDI channel. This is acting exactly like the Output_SendEventMessage funtion.

Remarks
If some destination is not yet validated, the method returns CPNS::Enums::ERR_SentToNotYetValidatedDestination. The message delivery is not guaranteed for those destinations.
Parameters
[in]hVMIDILinkOutHandle to the VMIDILink Out local device.
[in]bChannelMIDI channel
[in]pMessageDataPointer to the event message data (see CPEVENTMSG structure in CLCm_Defines.h)
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Warning
This function can only be called in CopperLan context. This means in the pseudo task CPDoProcess(), in notification handlers or in asynchronous return handlers and not in SystemDoProcess() for instance.