[Jack-Devel] latency: reducing buffer allocation
Hello,
in the process of squeezing the minimum latency out of my beagleboard,
how could I possibly tweak jack? The current issue is that if I try
getting below 512frames per period (256, 128 or even 64), jackd1 will
automatically allocate 2 periods for capture and 3, 5 or 10 for playback
even if I'm explicitly asking for -n2 periods. This is possibly related
to what man page says:
"For most ALSA devices, the hardware buffer has exactly --period
times --nperiods frames. Some devices demand a larger
buffer.
If so, JACK will use the smallest possible buffer
containing at
least --nperiods, but the playback latency does not
increase."
Can I get around it? No matter how tricky is the hack it would be gladly
appreciated to reduce the latency ;)
Also: what do you mean exactly by the latency does not increase? It
seems to me that it stays the same between, e.g. 256x5 allocated buffers
and 64x10 allocated buffers, but in all that cases it doesn't sound like
265x2 or 64x2 as I request to jack.
BTW: the chipset is TWL4030 twl4030-hifi-0 and at the moment I'm working
at 22050 to reduce computational load
Cheers
--
Dr. Leonardo Gabrielli, PhD student
A3Lab - Dept. Information Engineering
Università Politecnica delle Marche
via Brecce Bianche 12, 60131, Ancona, Italy
Skype: leonardo.gabrielli
Web: a3lab.dii.univpm.it/people/leonardo-gabrielli
<http://a3lab.dii.univpm.it/people/leonardo-gabrielli>
1395215767.26535_0.ltw:2, <532887EA.3080701 at univpm dot it>