cmAudioPort.c : Added cmApBufEnableMeter() call in cmApPortTest().
This commit is contained in:
parent
08ae2446b2
commit
5fc0fccb83
@ -743,6 +743,8 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
|||||||
if( r.inDevIdx != r.outDevIdx )
|
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 );
|
cmApBufSetup( r.inDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.inDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.inDevIdx,false), r.framesPerCycle );
|
||||||
|
|
||||||
|
cmApBufEnableMeter( r.inDevIdx, -1, kEnableApFl );
|
||||||
|
|
||||||
// setup an output device
|
// setup an output device
|
||||||
if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )
|
if(cmApDeviceSetup(r.outDevIdx,r.srate,r.framesPerCycle,_cmApPortCb2,&r) != kOkApRC )
|
||||||
cmRptPrintf(rpt,"Out device setup failed.\n");
|
cmRptPrintf(rpt,"Out device setup failed.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user