Browse Source

cmAudioPort.c : Added cmApBufEnableMeter() call in cmApPortTest().

master
kevin.larke 4 years ago
parent
commit
5fc0fccb83
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      cmAudioPort.c

+ 3
- 1
cmAudioPort.c View File

@@ -738,11 +738,13 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
738 738
 
739 739
     // setup the buffer for the output device
740 740
     cmApBufSetup( r.outDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.outDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.outDevIdx,false), r.framesPerCycle );
741
-
741
+    
742 742
     // setup the buffer for the input device
743 743
     if( r.inDevIdx != r.outDevIdx )
744 744
       cmApBufSetup( r.inDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.inDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.inDevIdx,false), r.framesPerCycle ); 
745 745
 
746
+    cmApBufEnableMeter(  r.inDevIdx, -1, kEnableApFl );
747
+
746 748
     // setup an output device
747 749
     if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )
748 750
       cmRptPrintf(rpt,"Out device setup failed.\n");

Loading…
Cancel
Save