瀏覽代碼

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

master
kevin.larke 4 年之前
父節點
當前提交
5fc0fccb83
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      cmAudioPort.c

+ 3
- 1
cmAudioPort.c 查看文件

@@ -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…
取消
儲存