(Page 27 of 41 in this chapter) Version
typedef struct
{
DWORD size;
DWORD DTMFabort;
INT32 gain;
DWORD speed;
DWORD maxspeed;
} VCE_PLAY_PARMS;
|
File Type
|
Range of Valid Message Numbers
|
|---|---|
|
VOX
|
0 to 32,767
|
|
Flat
|
0 to 65,535
|
|
WAVE
|
0 only
|
|
Memory
|
0 to 65,535
|
/* play a message and wait for completion */
extern CTAHD CtaHd;
extern CTAQUEUEHD CtaQueueHd;
void myPlaymsg(VCEHD vh, unsigned message)
{
CTA_EVENT event;
vcePlayMessage (vh, message, NULL) ;
do
{
ctaWaitEvent( CtaQueueHd, &event, CTA_WAIT_FOREVER);
} while (event.id != VCEEVN_PLAY_DONE); /* Ignore other events */
}
(Page 27 of 41 in this chapter) Version