Selaa lähdekoodia

cmApBuf.c : Added meters output to cmApBufRefport().

master
kevin.larke 4 vuotta sitten
vanhempi
commit
18b815d387
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6
    3
      cmApBuf.c

+ 6
- 3
cmApBuf.c Näytä tiedosto

815
 
815
 
816
       unsigned    byteCnt  = ip->dspFrameCnt * sizeof(cmApSample_t);
816
       unsigned    byteCnt  = ip->dspFrameCnt * sizeof(cmApSample_t);
817
 
817
 
818
+
818
       if( oBufPtrArray[i] != NULL )
819
       if( oBufPtrArray[i] != NULL )
819
       {      
820
       {      
820
         // the input channel is not disabled
821
         // the input channel is not disabled
846
       unsigned ii = 0;
847
       unsigned ii = 0;
847
       unsigned oi = 0;
848
       unsigned oi = 0;
848
       unsigned fn  = 0;
849
       unsigned fn  = 0;
850
+      cmApSample_t mtr = 0;
849
       for(k=0; k<ip->chCnt; ++k)
851
       for(k=0; k<ip->chCnt; ++k)
850
       {
852
       {
851
         cmApCh* cp = ip->chArray + i;
853
         cmApCh* cp = ip->chArray + i;
852
         ii += cp->ii;
854
         ii += cp->ii;
853
         oi += cp->oi;
855
         oi += cp->oi;
854
         fn += cp->fn;
856
         fn += cp->fn;
857
+        mtr += _cmApMeterValue(cp);
855
       }
858
       }
856
 
859
 
857
-        cmRptPrintf(rpt,"%s - i:%7i o:%7i f:%7i n:%7i err %s:%7i ",
860
+      cmRptPrintf(rpt,"%s - i:%7i o:%7i f:%7i n:%7i err %s:%7i  mtr:%5.4f ",
858
         j==0?"IN":"OUT",
861
         j==0?"IN":"OUT",
859
-        ii,oi,fn,ip->n, (j==0?"over":"under"), ip->faultCnt);
860
-
862
+        ii,oi,fn,ip->n, (j==0?"over":"under"), ip->faultCnt, mtr);
863
+      
861
     }
864
     }
862
 
865
 
863
     cmRptPrintf(rpt,"\n");
866
     cmRptPrintf(rpt,"\n");

Loading…
Peruuta
Tallenna