(Page 30 of 41 in this chapter) Version
typedef struct
{
DWORD size;
DWORD DTMFabort;
INT32 gain;
DWORD novoicetime;
DWORD silencetime;
INT32 silenceampl;
DWORD beepfreq;
INT32 beepampl;
DWORD beeptime;
DWORD AGCenable;
} VCE_RECORD_PARMS;
/* Append to an existing message */
extern CTAHD CtaHd;
extern CTAQUEUEHD CtaQueueHd;
void myAppend (VCEHD vh, unsigned message, int maxseconds)
{
CTA_EVENT event;
unsigned maxtime = maxseconds * 1000 ;
vceSetCurrentMessage (vh, message) ;
vceSetPosition (CtaHd, 0, VCE_SEEK_END, NULL) ;
vceRecord (CtaHd, maxtime, VCE_INSERT, NULL);
do
{
ctaWaitEvent( CtaQueueHd, &event, CTA_WAIT_FOREVER);
} while (event.id != VCEEVN_RECORD_DONE);/* Ignore other events */
}
(Page 30 of 41 in this chapter) Version