Browse Source

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

master
kevin 4 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
     if( r.inDevIdx != r.outDevIdx )
746
     if( r.inDevIdx != r.outDevIdx )
747
       cmApBufSetup( r.inDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.inDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.inDevIdx,false), r.framesPerCycle, srateMult ); 
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
     // setup an output device
752
     // setup an output device
752
     if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )
753
     if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )

Loading…
Cancel
Save