Browse Source

cmAudioSys.c: Added cmApNrtAllocate() and cmApFileAllocate() to cmAudioSysTest().

Verified ALSA drivers are working with cmAudioSysTest().
master
kevin 11 years ago
parent
commit
1be3fa2240
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      cmAudioSys.c

+ 9
- 0
cmAudioSys.c View File

@@ -7,6 +7,7 @@
7 7
 #include "cmMem.h"
8 8
 #include "cmMallocDebug.h"
9 9
 #include "cmAudioPort.h"
10
+#include "cmAudioNrtDev.h"
10 11
 #include "cmAudioPortFile.h"
11 12
 #include "cmApBuf.h"
12 13
 #include "cmJson.h"
@@ -1304,6 +1305,12 @@ void cmAudioSysTest( cmRpt_t* rpt, int argc, const char* argv[] )
1304 1305
   cmRptPrintf(rpt,"in:%i out:%i syncFl:%i que:%i fpc:%i dsp:%i bufs:%i sr:%f\n",ss.args.inDevIdx,ss.args.outDevIdx,ss.args.syncInputFl,
1305 1306
     ss.args.msgQueueByteCnt,ss.args.devFramesPerCycle,ss.args.dspFramesPerCycle,ss.args.audioBufCnt,ss.args.srate);
1306 1307
 
1308
+  if( cmApNrtAllocate(rpt) != kOkApRC )
1309
+    goto errLabel;
1310
+
1311
+  if( cmApFileAllocate(rpt) != kOkApRC )
1312
+    goto errLabel;
1313
+
1307 1314
   // initialize the audio device system
1308 1315
   if( cmApInitialize(rpt) != kOkApRC )
1309 1316
     goto errLabel;
@@ -1406,6 +1413,8 @@ void cmAudioSysTest( cmRpt_t* rpt, int argc, const char* argv[] )
1406 1413
 
1407 1414
   cmAudioSysFree(&h);
1408 1415
   cmApFinalize();
1416
+  cmApFileFree();
1417
+  cmApNrtFree();
1409 1418
   cmApBufFinalize();
1410 1419
 
1411 1420
 }

Loading…
Cancel
Save