ioctl(ixj, PHONE_GET_TONE_STATE)
Return Value
Returns 0 if no tone is being played 1 if a tone is being played 2 if the tone silence interval is being played.
Parameters
None.
Remarks
Used to determine the output tone generator state.
See Also:
PHONE_SET_TONE_ON_TIME, PHONE_SET_TONE_OFF_TIME, PHONE_GET_TONE_ON_TIME, PHONE_GET_TONE_OFF_TIME, PHONE_PLAY_TONE,
Example:
for(digit = 1;digit < 13;digit++) { ioctl(ixj, PHONE_PLAY_TONE, digit); state = ioctl(ixj, PHONE_GET_TONE_STATE); printf("state = %d\t", state); fflush(stdout); cnt = 0; while(state) { cnt++; usleep(40); state = ioctl(ixj, PHONE_GET_TONE_STATE); } printf("cnt = %d\n", cnt); fflush(stdout); }
©1996-2001 Quicknet Technologies, Inc.