(Page 16 of 69 in this chapter) Version
{
DWORD size; /* returned size (GetPlayStatus()) */
DWORD reason; /* reason last play ended */
DWORD buffercount; /* counter of buffers submitted */
DWORD framecount; /* number of frames submitted */
DWORD totalbytes; /* total bytes submitted */
void *buffer; /* last buffer pointer submitted */
DWORD bytecount; /* size of last buffer submitted */
DWORD bytesplayed; /* total bytes actually played */
DWORD timestarted; /* actual time started (ms units) */
DWORD underrun; /* counts out-of-frame events */
} ADI_PLAY_STATUS;
void myShowPlayStatus( CTAHD ctahd )
{
ADI_PLAY_STATUS playstatus;
adiGetPlayStatus( ctahd, &playstatus, sizeof playstatus );
printf( "Termination condition=%x bytes played=%d\n",
playstatus.reason, playstatus.bytesplayed );
}
(Page 16 of 69 in this chapter) Version