From 18b815d387bbbd30a52116515afdfe075da99027 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Fri, 21 Feb 2020 15:38:22 -0500 Subject: [PATCH] cmApBuf.c : Added meters output to cmApBufRefport(). --- cmApBuf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmApBuf.c b/cmApBuf.c index 0858d78..d034633 100644 --- a/cmApBuf.c +++ b/cmApBuf.c @@ -815,6 +815,7 @@ void cmApBufInputToOutput( unsigned iDevIdx, unsigned oDevIdx ) unsigned byteCnt = ip->dspFrameCnt * sizeof(cmApSample_t); + if( oBufPtrArray[i] != NULL ) { // the input channel is not disabled @@ -846,18 +847,20 @@ void cmApBufReport( cmRpt_t* rpt ) unsigned ii = 0; unsigned oi = 0; unsigned fn = 0; + cmApSample_t mtr = 0; for(k=0; kchCnt; ++k) { cmApCh* cp = ip->chArray + i; ii += cp->ii; oi += cp->oi; fn += cp->fn; + mtr += _cmApMeterValue(cp); } - cmRptPrintf(rpt,"%s - i:%7i o:%7i f:%7i n:%7i err %s:%7i ", + cmRptPrintf(rpt,"%s - i:%7i o:%7i f:%7i n:%7i err %s:%7i mtr:%5.4f ", j==0?"IN":"OUT", - ii,oi,fn,ip->n, (j==0?"over":"under"), ip->faultCnt); - + ii,oi,fn,ip->n, (j==0?"over":"under"), ip->faultCnt, mtr); + } cmRptPrintf(rpt,"\n");