CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode MIDI2CP_SendMIDIBlob ( CPHOBJECT const  hMIDI2CP,
CPUINT8 const  bDataLength,
CPBYTE const *const  pData,
CPBOOLEAN const  fFlush,
CPUINT8 *const  pbSent 
)

Send a MIDI blob.

Parameters
[in]hMIDI2CPMIDI2CP local device handle
[in]bDataLengthnumber of bytes in the buffer [0-255]
[in]pDatapointer to the buffer
[in]fFlushTRUE if the message must be sent directly
[out]pbSentnumber of bytes consumed from the buffer
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Remarks
if the blob is not matching a number of MIDI messages, or in case of flow control limitation, the MIDI translator embedded in the device can keep some messages pending. Ensure to call SendMIDIBlob (even with no data) if bwSent does not equals to bDataLength or if flow control has been activated.
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.