(Page 3 of 14 in this chapter) Version
typedef struct_tag_MSP_CHANNEL_ADDR
{
DWORD nBoard; /* Channel location (board number)*/
MSP_TYPE_CHANNEL pChanType; /* Type of channel to create */
} MSP_CHANNEL_ADDR;
mspChanAddr.nBoard = DEFAULT_BOARDID;
mspChanAddr.channelType = G711FullDuplex; ret = mspCreateChannel( hCta, &mspChanAddr, NULL, &hChan );
if (ret != SUCCESS)
return FAILURE; ctaWaitEvent( hCta, &Event, CTA_WAIT_FOREVER ); // Check the reason code
if ( Event.id != MSPEVN_CREATE_CHANNEL_DONE ||
Event.value != CTA_REASON_FINISHED )
return FAILURE;
(Page 3 of 14 in this chapter) Version