Voice API for Windows Operating Systems Library Reference — November 2003 353
record voice data to a single VOX file — dx_recvox( )
/* Start playback */
if (dx_playwav(chdev,"HELLO.WAV",&tpt,EV_SYNC) == -1) {
printf("Error playing file - %s\n", ATDV_ERRMSGP(chdev));
exit(4);
}
/* clear digit buffer */
dx_clrdigbuf(chdev);
/* Start 6KHz ADPCM recording */
if (
dx_recvox(chdev,"MESSAGE.VOX",&tpt,NULL,RM_TONE|EV_SYNC)
== -1){
printf("Error recording file - %s\n", ATDV_ERRMSGP(chdev));
exit(4);
}
}
!
!!
!See Also
dx_rec( )
dx_recf( )
dx_reciottdata( )
dx_recwav( )