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
 
738
 
739
     // setup the buffer for the output device
739
     // setup the buffer for the output device
740
     cmApBufSetup( r.outDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.outDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.outDevIdx,false), r.framesPerCycle );
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
     // setup the buffer for the input device
742
     // setup the buffer for the input device
743
     if( r.inDevIdx != r.outDevIdx )
743
     if( r.inDevIdx != r.outDevIdx )
744
       cmApBufSetup( r.inDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.inDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.inDevIdx,false), r.framesPerCycle ); 
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
     // setup an output device
748
     // setup an output device
747
     if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )
749
     if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )
748
       cmRptPrintf(rpt,"Out device setup failed.\n");
750
       cmRptPrintf(rpt,"Out device setup failed.\n");

Loading…
Cancel
Save