|
|
Intel Dialogic Tip: Why Did The Play or Record Function Stop? If
you are performing a play or a record function on a Dialogic board and you want
to know why the play or record function stopped, then can you try using the
ATDX_TERMMSK() function. This
function will return a bitmask. Therefore, you should use an AND, not an
EQUATES. The bitmask can be used to determine why a Dialogic I/O terminated. In
this case, call ATDX_TERMMSK()and then check the answer to see if the play
terminated normally, because a digit was pressed, or for some other reason.
You will want to write code similar to this: /*
wait for play or record to finish, then determine why */ term
= ATDX_TERMMSK( chdev ); /*
NB: use & for AND instead of == for equates. */ if
( term & TM_NORMALTERM ) { For
more on ATDX_TERMMSK() see the documentation on page 184 of the PDF (page 170 of
the actual manual) available on Intel's web site at:
|
send mail to bisnowden@hotmail.com with questions or commentsabout this web site.
|