<br><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 4:23 AM,  <span dir="ltr"><<a href="mailto:fons@kokkinizita.net">fons@kokkinizita.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Aug 01, 2010 at 11:06:36PM -0400, Arvind Venkatasubramanian wrote:<br>
<br>
> Everytime I changed the qJACKctl parameter settings, I "DID"  stop Jackd,<br>
> quited Jack,<br>
<br>
</div>What do you mean by 'quited Jack' ? Are you running jackd in a terminal ?<br>
Then Qjackctl's settings  will not affect it. Just use the Start/Stop<br>
buttons in Qjackctl.<br>
<br>
Also check your sound card mixer. Make sure you don't loop back the input<br>
to output there. And use Jaaa to check the input signal - it could be<br>
clipping. You should see 7 frequencies, the strongest at FS/16, and the<br>
six others at lower level and frequency (or just compare the the output<br>
of Jdelay).<br>
<br>
10 ms latency at 8 khz will be difficult, just a good antialising<br>
filter will produce something like that. No problem at 48 kHz.<br>
<div class="im"><br>
Ciao,<br>
<br>
--<br>
FA<br>
<br></div></blockquote><div>====================================================================</div><div><br></div><div>Using Jdelay for fs = 8 KHz, I am measuring 6.359 ms and for 16 KHz, 3.466 ms without Xrun interrupts.  But I need to verify this with JAAA as per your idea but I am having issues there.</div>
<div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ jackd -r -d alsa -r 16000 -n 1 -p 32 -S 16 -s -H -M </span></div><div><span class="Apple-style-span" style="font-size: x-small;">jackd 0.118.0 </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others. </span></div><div><span class="Apple-style-span" style="font-size: x-small;">jackd comes with ABSOLUTELY NO WARRANTY .  </span><span class="Apple-style-span" style="font-size: x-small; ">This is free software, and you are welcome to redistribute it </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">under certain conditions; see the file COPYING for details </span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div>
<span class="Apple-style-span" style="font-size: x-small;">JACK compiled with System V SHM support. </span></div><div><span class="Apple-style-span" style="font-size: x-small;">loading driver .. </span></div><div><span class="Apple-style-span" style="font-size: x-small;">apparent rate = 16000 </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">creating alsa driver ... hw:0|hw:0|32|2|16000|0|0|hwmon|hwmeter|soft-mode|16bit </span></div><div><span class="Apple-style-span" style="font-size: x-small;">control device hw:0 </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">configuring for 16000Hz, period = 32 frames (2.0 ms), buffer = 2 periods </span></div><div><span class="Apple-style-span" style="font-size: x-small;">ALSA: final selected sample format for capture: 16bit little-endian </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">ALSA: use 2 periods for capture </span></div><div><span class="Apple-style-span" style="font-size: x-small;">ALSA: final selected sample format for playback: 16bit little-endian </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">ALSA: use 2 periods for playback </span></div><div><span class="Apple-style-span" style="font-size: x-small;">jack main caught signal 15 </span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br>
</span></div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ jack_delay </span></div><div><span class="Apple-style-span" style="font-size: x-small;">capture latency  = 32 </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">playback_latency = 32 </span></div><div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div><div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div><div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div><div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div><div><span class="Apple-style-span" style="font-size: x-small;">Signal below threshold... </span></div><div><span class="Apple-style-span" style="font-size: x-small;">   152.708 frames      3.463 ms ?? Inv </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">   152.826 frames      3.465 ms Inv </span></div><div><span class="Apple-style-span" style="font-size: x-small;">   152.824 frames      3.465 ms Inv </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">   152.823 frames      3.465 ms Inv </span></div><div><span class="Apple-style-span" style="font-size: x-small;">   152.821 frames      3.465 ms Inv </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">   152.834 frames      3.466 ms Inv </span></div><div><span class="Apple-style-span" style="font-size: x-small;">   152.821 frames      3.465 ms Inv </span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">   152.832 frames      3.466 ms Inv </span></div></div><div><br></div><div>After starting Jack, I am able to run Jdelay.  But I am not able to run JAAA </div>
<div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ jackd -r -d alsa -r 16000 -n 1 -p 32 -S 16 -s -H -M</span></div><div><span class="Apple-style-span" style="font-size: x-small;">jackd 0.118.0</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.</span></div><div><span class="Apple-style-span" style="font-size: x-small;">jackd comes with ABSOLUTELY NO WARRANTY </span><span class="Apple-style-span" style="font-size: x-small; ">This is free software, and you are welcome to redistribute it</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">under certain conditions; see the file COPYING for details</span></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div>
<span class="Apple-style-span" style="font-size: x-small;">JACK compiled with System V SHM support.</span></div><div><span class="Apple-style-span" style="font-size: x-small;">loading driver ..</span></div><div><span class="Apple-style-span" style="font-size: x-small;">apparent rate = 16000</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">creating alsa driver ... hw:0|hw:0|32|2|16000|0|0|hwmon|hwmeter|soft-mode|16bit</span></div><div><span class="Apple-style-span" style="font-size: x-small;">control device hw:0</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">configuring for 16000Hz, period = 32 frames (2.0 ms), buffer = 2 periods</span></div><div><span class="Apple-style-span" style="font-size: x-small;">ALSA: final selected sample format for capture: 16bit little-endian</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">ALSA: use 2 periods for capture</span></div><div><span class="Apple-style-span" style="font-size: x-small;">ALSA: final selected sample format for playback: 16bit little-endian</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">ALSA: use 2 periods for playback</span></div></div><div><span class="Apple-style-span" style="font-size: x-small;"><br></span></div><div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ jaaa -A -d hw:Intel -r 16000</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Alsa_driver: Cannot open PCM device hw:Intel for playback.</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Alsa_driver: Cannot open PCM device hw:Intel for capture.</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Can't connect to ALSA</span></div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ jaaa -J -d hw:Intel -r 16000</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Connected to JACK with 4 inputs and 4 outputs</span></div><div><span class="Apple-style-span" style="font-size: x-small;">mlockall: Cannot allocate memory</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Closing JACK...</span></div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ </span></div></div><div><br></div><div>However for higher sampling rates, I am able to open JAAA without even issuing jackd command to start JACK separately.</div>
<div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ jaaa -A -d hw:Intel</span></div><div><span class="Apple-style-span" style="font-size: x-small;">playback :</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">  nchan  : 2</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  rate   : 48000</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  frsize : 1024</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">  nfrags : 2</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  format : S32_LE</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  capture  :</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">  nchan  : 2</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  rate   : 48000</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  frsize : 1024</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">  nfrags : 2</span></div><div><span class="Apple-style-span" style="font-size: x-small;">  format : S32_LE</span><span class="Apple-style-span" style="font-size: x-small; ">synced</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">Connected to ALSA with 2 inputs and 2 outputs</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Can't create ALSA thread with RT priority</span></div>
<div><span class="Apple-style-span" style="font-size: x-small;">mlockall: Cannot allocate memory</span></div><div><span class="Apple-style-span" style="font-size: x-small;">Closing ALSA...</span></div><div><span class="Apple-style-span" style="font-size: x-small;">[Arvind@laspr-01 ~]$ </span></div>
</div><div><br></div><div>While JAAA is running, I am not able to start Jdelay.  Once JAAA operates alongside other Jack applications, I will be able to patch the output of Jdelay to JAAA and see if I can see those 7 tones that you internally use in Jdelay for latency measurements.  Can you please suggest some inputs here?</div>
<div><br></div><div>Regards,</div><div>Arvind V</div></div>