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
 #include "cmMem.h"
7
 #include "cmMem.h"
8
 #include "cmMallocDebug.h"
8
 #include "cmMallocDebug.h"
9
 #include "cmAudioPort.h"
9
 #include "cmAudioPort.h"
10
+#include "cmAudioNrtDev.h"
10
 #include "cmAudioPortFile.h"
11
 #include "cmAudioPortFile.h"
11
 #include "cmApBuf.h"
12
 #include "cmApBuf.h"
12
 #include "cmJson.h"
13
 #include "cmJson.h"
1304
   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
   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
     ss.args.msgQueueByteCnt,ss.args.devFramesPerCycle,ss.args.dspFramesPerCycle,ss.args.audioBufCnt,ss.args.srate);
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
   // initialize the audio device system
1314
   // initialize the audio device system
1308
   if( cmApInitialize(rpt) != kOkApRC )
1315
   if( cmApInitialize(rpt) != kOkApRC )
1309
     goto errLabel;
1316
     goto errLabel;
1406
 
1413
 
1407
   cmAudioSysFree(&h);
1414
   cmAudioSysFree(&h);
1408
   cmApFinalize();
1415
   cmApFinalize();
1416
+  cmApFileFree();
1417
+  cmApNrtFree();
1409
   cmApBufFinalize();
1418
   cmApBufFinalize();
1410
 
1419
 
1411
 }
1420
 }

Loading…
Cancel
Save