<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 9:51 AM, Gianfranco Ceccolini <span dir="ltr"><<a href="mailto:gianfranco@portalmod.com.br" target="_blank">gianfranco@portalmod.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Paul. I’m really sorry for my lack of comprehension, but I still don’t get it.  Is there a relation between the ALSA period with JACK’s period?<br></blockquote><div><br></div><div>they are identical.<br></div></div></div></div></blockquote>How can that be? JACK says -p 128 samples and ALSA says 2 on the PC and 16 on the BBB<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> <br></div>
<div>note: other audio APIs call this a "buffer". some, like ASIO, force a double "buffered" model where the total size of the hardware memory area used for transfers (what ALSA calls the "hardware buffer") is always twice the "buffer size".<br>
<br>ALSA offers control over *both* the "period" (between interrupts) and the total hardware buffer size. This is unusual among audio APIs, except that JACK follows the same convention in its ALSA backend. You can specify the period size (-p) and the number of "periods" that make up the hardware buffer.<br></div></div></div></div></blockquote>So if I use -p128 and -n2 it means the kernel will buffer 256 samples per interrupt, is it?<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>
</div></div><br></div></div>
</blockquote></div><br><div>Thanks for the patience</div><div><br></div><div>Gian</div></body></html>