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

This commit is contained in:
kevin 2020-07-19 08:00:20 -04:00
parent 7630f0a453
commit e9e405f4a9

View File

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