Browse Source

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

master
kevin 3 years ago
parent
commit
e9e405f4a9
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cmAudioPort.c

+ 2
- 1
cmAudioPort.c View File

@@ -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…
Cancel
Save