cmAudioSys.c: Added cmApNrtAllocate() and cmApFileAllocate() to cmAudioSysTest().
Verified ALSA drivers are working with cmAudioSysTest().
This commit is contained in:
parent
6d0d9005c8
commit
1be3fa2240
@ -7,6 +7,7 @@
|
|||||||
#include "cmMem.h"
|
#include "cmMem.h"
|
||||||
#include "cmMallocDebug.h"
|
#include "cmMallocDebug.h"
|
||||||
#include "cmAudioPort.h"
|
#include "cmAudioPort.h"
|
||||||
|
#include "cmAudioNrtDev.h"
|
||||||
#include "cmAudioPortFile.h"
|
#include "cmAudioPortFile.h"
|
||||||
#include "cmApBuf.h"
|
#include "cmApBuf.h"
|
||||||
#include "cmJson.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,
|
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);
|
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
|
// initialize the audio device system
|
||||||
if( cmApInitialize(rpt) != kOkApRC )
|
if( cmApInitialize(rpt) != kOkApRC )
|
||||||
goto errLabel;
|
goto errLabel;
|
||||||
@ -1406,6 +1413,8 @@ void cmAudioSysTest( cmRpt_t* rpt, int argc, const char* argv[] )
|
|||||||
|
|
||||||
cmAudioSysFree(&h);
|
cmAudioSysFree(&h);
|
||||||
cmApFinalize();
|
cmApFinalize();
|
||||||
|
cmApFileFree();
|
||||||
|
cmApNrtFree();
|
||||||
cmApBufFinalize();
|
cmApBufFinalize();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user