IltmmCapture::EstimateOutputBitRate Example for C

// Having an IltmmCapture Interface, pCap:

double BitRate;

// get the estimate bit rate before capturing starts (theoretical)
IltmmCapture_EstimateOutputBitRate (pCap, &BitRate);

// After starting capture, get the estimate output bit rate (estimate from actually written bytes)
IltmmCapture_EstimateOutputBitRate (pCap, &BitRate); 
// do something with the returned values.

L_MULTIMEDIATEX_API void IltmmCapture_EstimateOutputBitRate_Example (IltmmCapture* pCapture)
{
   double BitRate;

   // get the estimate bit rate before capturing starts (theoretical)
   IltmmCapture_EstimateOutputBitRate (pCapture, &BitRate);

   // After starting capture, get the estimate output bit rate (estimate from actually written bytes)
   IltmmCapture_EstimateOutputBitRate (pCapture, &BitRate); 
 
   // do something with the returned values.
}