From 1be3fa22409c804a83189c9992463d9611fc9f5b Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 31 Mar 2013 22:53:58 -0700 Subject: [PATCH] cmAudioSys.c: Added cmApNrtAllocate() and cmApFileAllocate() to cmAudioSysTest(). Verified ALSA drivers are working with cmAudioSysTest(). --- cmAudioSys.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmAudioSys.c b/cmAudioSys.c index 75f4317..45f105a 100644 --- a/cmAudioSys.c +++ b/cmAudioSys.c @@ -7,6 +7,7 @@ #include "cmMem.h" #include "cmMallocDebug.h" #include "cmAudioPort.h" +#include "cmAudioNrtDev.h" #include "cmAudioPortFile.h" #include "cmApBuf.h" #include "cmJson.h" @@ -1304,6 +1305,12 @@ void cmAudioSysTest( cmRpt_t* rpt, int argc, const char* argv[] ) 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, ss.args.msgQueueByteCnt,ss.args.devFramesPerCycle,ss.args.dspFramesPerCycle,ss.args.audioBufCnt,ss.args.srate); + if( cmApNrtAllocate(rpt) != kOkApRC ) + goto errLabel; + + if( cmApFileAllocate(rpt) != kOkApRC ) + goto errLabel; + // initialize the audio device system if( cmApInitialize(rpt) != kOkApRC ) goto errLabel; @@ -1406,6 +1413,8 @@ void cmAudioSysTest( cmRpt_t* rpt, int argc, const char* argv[] ) cmAudioSysFree(&h); cmApFinalize(); + cmApFileFree(); + cmApNrtFree(); cmApBufFinalize(); }