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