Browse Source

cmAudioPort.c: Added cmApFileAllocate() to cmApPortTest().

Verified ALSA is working with cmApPortTest()
master
kevin 11 years ago
parent
commit
6d0d9005c8
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      cmAudioPort.c

+ 8
- 0
cmAudioPort.c View File

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

Loading…
Cancel
Save