cmAudioPort.c: Added cmApFileAllocate() to cmApPortTest().
Verified ALSA is working with cmApPortTest()
This commit is contained in:
parent
3491613a50
commit
6d0d9005c8
@ -693,6 +693,13 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
||||
|
||||
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);
|
||||
|
||||
if( cmApFileAllocate(rpt) != kOkApRC )
|
||||
{
|
||||
cmRptPrintf(rpt,"Audio port file allocation failed.");
|
||||
result = -1;
|
||||
goto errLabel;
|
||||
}
|
||||
|
||||
// allocate the non-real-time port
|
||||
if( cmApNrtAllocate(rpt) != kOkApRC )
|
||||
{
|
||||
@ -796,6 +803,7 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
||||
cmApBufFinalize();
|
||||
|
||||
cmApNrtFree();
|
||||
cmApFileFree();
|
||||
|
||||
// report the count of audio buffer callbacks
|
||||
cmRptPrintf(rpt,"cb count:%i\n", r.cbCnt );
|
||||
|
Loading…
Reference in New Issue
Block a user