Browse Source

cmAudioPort.c : cmApTest() now accepts sample rate as a command line arg..

master
Kevin Larke 9 years ago
parent
commit
c734464b0e
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      cmAudioPort.c

+ 3
- 1
cmAudioPort.c View File

363
   
363
   
364
     }
364
     }
365
   }
365
   }
366
+
367
+  //cmApAlsaDeviceReport(rpt);
366
 }
368
 }
367
 
369
 
368
 /// [cmAudioPortExample]
370
 /// [cmAudioPortExample]
668
 
670
 
669
 
671
 
670
   runFl            = _cmApGetOpt(argc,argv,"-p",!runFl,true)?false:true;
672
   runFl            = _cmApGetOpt(argc,argv,"-p",!runFl,true)?false:true;
673
+  r.srate          = _cmApGetOpt(argc,argv,"-r",44100,false);
671
   r.chIdx          = _cmApGetOpt(argc,argv,"-a",0,false);
674
   r.chIdx          = _cmApGetOpt(argc,argv,"-a",0,false);
672
   r.chCnt          = _cmApGetOpt(argc,argv,"-c",2,false);
675
   r.chCnt          = _cmApGetOpt(argc,argv,"-c",2,false);
673
   r.bufCnt         = _cmApGetOpt(argc,argv,"-b",3,false);
676
   r.bufCnt         = _cmApGetOpt(argc,argv,"-b",3,false);
685
   r.outDevIdx  = _cmGlobalOutDevIdx = _cmApGetOpt(argc,argv,"-o",2,false); 
688
   r.outDevIdx  = _cmGlobalOutDevIdx = _cmApGetOpt(argc,argv,"-o",2,false); 
686
   r.phase      = 0;
689
   r.phase      = 0;
687
   r.frqHz      = 2000;
690
   r.frqHz      = 2000;
688
-  r.srate      = 44100;
689
   r.bufInIdx   = 0;
691
   r.bufInIdx   = 0;
690
   r.bufOutIdx  = 0;
692
   r.bufOutIdx  = 0;
691
   r.bufFullCnt = 0;
693
   r.bufFullCnt = 0;

Loading…
Cancel
Save