(Page 17 of 69 in this chapter) Version
{ /* Parms related to RECORD functions: */
DWORD size ; /* Returned size (GetRecordStatus()) */
DWORD reason; /* Reason last record ended */
DWORD buffercount; /* Counter of buffers submitted */
DWORD frame /* Number of frames submitted */
DWORD totalbytes; /* Total bytes submitted */
void *buffer; /* Last buffer pointer SUBMITTED. */
DWORD bytecount; /* Number of bytes into this buffer */
DWORD bytesrecorded; /* Total bytes actually recorded. */
DWORD timestarted; /* Actual time started (ms units) */
DWORD underrun; /* Counts underrun events */
} ADI_RECORD_STATUS;
void myShowRecordStatus( CTAHD ctahd )
{
ADI_RECORD_STATUS recordstatus;
adiGetRecordStatus( ctahd, &recordstatus, sizeof recordstatus );
/* A termination condition of 0 indicates either record in progress,
* or none yet started in this CTA context.
*/
printf( "Termination condition=%x, bytes recorded=%d\n",
recordstatus.reason, recordstatus.bytesrecorded );
}
(Page 17 of 69 in this chapter) Version