1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| int BChannel::myPlayMessage()
{
int ret;
CTA_EVENT nextevent;
if( vceOpenFile( ctahd, flist[fnum].nom, VCE_FILETYPE_VOX, VCE_PLAY_ONLY,
ADI_ENCODE_NMS_32, &vcehd) != SUCCESS)
return FAILURE;
if(DemoShouldReport( DEMO_REPORT_COMMENTS))
printf("\tmyPlayMessage: joue le message %2.2d du fichier %s.vox ...\n",
message, flist[fnum].nom);
if( vcePlayList(vcehd, &message, 1, NULL) != SUCCESS )
{
vceClose( vcehd );
return FAILURE;
}
ret = SUCCESS;
playing = TRUE;
while( playing )
{
ctaWaitEvent ( qid, &nextevent, CTA_WAIT_FOREVER );
processEvent ( &nextevent );
}
} |
Partager