Sfoglia il codice sorgente

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

master
Kevin Larke 9 anni fa
parent
commit
c734464b0e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      cmAudioPort.c

+ 3
- 1
cmAudioPort.c Vedi File

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

Loading…
Annulla
Salva