From c734464b0ef1c9b03921f6e44a88c3eaaf1a97c9 Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Fri, 29 May 2015 11:21:16 -0700 Subject: [PATCH] cmAudioPort.c : cmApTest() now accepts sample rate as a command line arg.. --- cmAudioPort.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmAudioPort.c b/cmAudioPort.c index c4bc94f..8237887 100644 --- a/cmAudioPort.c +++ b/cmAudioPort.c @@ -363,6 +363,8 @@ void cmApReport( cmRpt_t* rpt ) } } + + //cmApAlsaDeviceReport(rpt); } /// [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; + r.srate = _cmApGetOpt(argc,argv,"-r",44100,false); r.chIdx = _cmApGetOpt(argc,argv,"-a",0,false); r.chCnt = _cmApGetOpt(argc,argv,"-c",2,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.phase = 0; r.frqHz = 2000; - r.srate = 44100; r.bufInIdx = 0; r.bufOutIdx = 0; r.bufFullCnt = 0;