cmAudioPort.c : Added cmApBufEnableMeter() call in cmApPortTest().
This commit is contained in:
parent
08ae2446b2
commit
5fc0fccb83
@ -738,11 +738,13 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
|||||||
|
|
||||||
// setup the buffer for the output device
|
// setup the buffer for the output device
|
||||||
cmApBufSetup( r.outDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.outDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.outDevIdx,false), r.framesPerCycle );
|
cmApBufSetup( r.outDevIdx, r.srate, r.framesPerCycle, r.bufCnt, cmApDeviceChannelCount(r.outDevIdx,true), r.framesPerCycle, cmApDeviceChannelCount(r.outDevIdx,false), r.framesPerCycle );
|
||||||
|
|
||||||
// setup the buffer for the input device
|
// setup the buffer for the input device
|
||||||
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