|
@@ -693,6 +693,13 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
693
|
693
|
|
694
|
694
|
cmRptPrintf(rpt,"%s in:%i out:%i chidx:%i chs:%i bufs=%i frm=%i rate=%f\n",runFl?"exec":"rpt",r.inDevIdx,r.outDevIdx,r.chIdx,r.chCnt,r.bufCnt,r.framesPerCycle,r.srate);
|
695
|
695
|
|
|
696
|
+ if( cmApFileAllocate(rpt) != kOkApRC )
|
|
697
|
+ {
|
|
698
|
+ cmRptPrintf(rpt,"Audio port file allocation failed.");
|
|
699
|
+ result = -1;
|
|
700
|
+ goto errLabel;
|
|
701
|
+ }
|
|
702
|
+
|
696
|
703
|
// allocate the non-real-time port
|
697
|
704
|
if( cmApNrtAllocate(rpt) != kOkApRC )
|
698
|
705
|
{
|
|
@@ -796,6 +803,7 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
796
|
803
|
cmApBufFinalize();
|
797
|
804
|
|
798
|
805
|
cmApNrtFree();
|
|
806
|
+ cmApFileFree();
|
799
|
807
|
|
800
|
808
|
// report the count of audio buffer callbacks
|
801
|
809
|
cmRptPrintf(rpt,"cb count:%i\n", r.cbCnt );
|