(Page 12 of 40 in this chapter)
typedef struct
{
DWORD size;
DWORD numcurrent;
DWORD position;
DWORD reasondone;
DWORD auxerror;
DWORD function;
DWORD underruns;
DWORD currentgain;
DWORD currentspeed;
DWORD encoding;
DWORD framesize;
DWORD frametime;
} VCE_CONTEXT_INFO;
/* Get the underrun count */
unsigned myGetUnderruns (CTAHD ctahd)
{
VCE_CONTEXT_INFO contextinfo;
vceGetContextInfo (ctahd, &contextinfo, sizeof contextinfo);
return contextinfo.underruns;
}
(Page 12 of 40 in this chapter)