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

Send a selector message to the specified MIDI channel. This is acting exactly like the Output_SendSelectorMessage 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 selector message data (see CPSELECTORMSG 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.