cmAudioPort.c : cmApTest() now accepts sample rate as a command line arg..
This commit is contained in:
parent
962ec25635
commit
c734464b0e
@ -363,6 +363,8 @@ void cmApReport( cmRpt_t* rpt )
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//cmApAlsaDeviceReport(rpt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [cmAudioPortExample]
|
/// [cmAudioPortExample]
|
||||||
@ -668,6 +670,7 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
|||||||
|
|
||||||
|
|
||||||
runFl = _cmApGetOpt(argc,argv,"-p",!runFl,true)?false:true;
|
runFl = _cmApGetOpt(argc,argv,"-p",!runFl,true)?false:true;
|
||||||
|
r.srate = _cmApGetOpt(argc,argv,"-r",44100,false);
|
||||||
r.chIdx = _cmApGetOpt(argc,argv,"-a",0,false);
|
r.chIdx = _cmApGetOpt(argc,argv,"-a",0,false);
|
||||||
r.chCnt = _cmApGetOpt(argc,argv,"-c",2,false);
|
r.chCnt = _cmApGetOpt(argc,argv,"-c",2,false);
|
||||||
r.bufCnt = _cmApGetOpt(argc,argv,"-b",3,false);
|
r.bufCnt = _cmApGetOpt(argc,argv,"-b",3,false);
|
||||||
@ -685,7 +688,6 @@ int cmApPortTest( bool runFl, cmRpt_t* rpt, int argc, const char* argv[] )
|
|||||||
r.outDevIdx = _cmGlobalOutDevIdx = _cmApGetOpt(argc,argv,"-o",2,false);
|
r.outDevIdx = _cmGlobalOutDevIdx = _cmApGetOpt(argc,argv,"-o",2,false);
|
||||||
r.phase = 0;
|
r.phase = 0;
|
||||||
r.frqHz = 2000;
|
r.frqHz = 2000;
|
||||||
r.srate = 44100;
|
|
||||||
r.bufInIdx = 0;
|
r.bufInIdx = 0;
|
||||||
r.bufOutIdx = 0;
|
r.bufOutIdx = 0;
|
||||||
r.bufFullCnt = 0;
|
r.bufFullCnt = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user