(Page 26 of 80 in this chapter)
typedef struct
{ /* 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 context.
*/
printf( "Termination condition=%x, bytes recorded=%d\n",
recordstatus.reason, recordstatus.bytesrecorded );
}
(Page 26 of 80 in this chapter)