/* Set up DX_IOTT structure */ iott[0].io_fhandle = fd; iott[0].io_type = IO_DEV; iott[0].io_offset = 0; iott[0].io_length = MAXLEN; iott[0].io_offset = IO_EOT;
/* And record from both voice channels */
if (dx_mreciottdata(devh3, &iott[0], &tpt, &xpb, RM_TONE, &tsinfo) ==
exit(2);
}
/* Display termination condition value */
printf ("The termination value = %d\n", ATDX_TERMMSK(devh1));
/* And close three voice channels */ if (dx_close(devh3) ==
printf("Error closing devh3 \n");
/* Perform system error processing */ exit(3);
}
if (dx_close(devh2) ==
/* Perform system error processing */ exit (3);
}
if (dx_close(devh1) ==
/* Perform system error processing */ exit (3);
}
if (dx_fileclose(fd) ==
}
/* And finish */ return;
}
See Also
•dx_rec( )
•dx_play( )
•dx_reciottdata( )
•dx_playiottdata( )
HMP Linux 1.2 Release Update, Rev 05 — September 2006September 2006 | 40 |