瀏覽代碼

cmAudioPort.c : Enable the input and output channels on the selected devices in cmApPortTest().

master
kevin 4 年之前
父節點
當前提交
e9e405f4a9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      cmAudioPort.c

+ 2
- 1
cmAudioPort.c 查看文件

@@ -746,7 +746,8 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
746 746
     if( r.inDevIdx != r.outDevIdx )
747 747
       cmApBufSetup( r.inDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.inDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.inDevIdx,false), r.framesPerCycle, srateMult ); 
748 748
 
749
-    cmApBufEnableMeter(  r.inDevIdx, -1, kEnableApFl );
749
+    cmApBufEnableMeter(  r.inDevIdx,  -1, kEnableApFl | kInApFl );
750
+    cmApBufEnableMeter(  r.outDevIdx, -1, kEnableApFl | kOutApFl );
750 751
 
751 752
     // setup an output device
752 753
     if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )

Loading…
取消
儲存