|
@@ -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");
|