<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I don't have any disk I/O operations, I receive data from a USB dongle at a <br>
constant rate. <br>
<br>
If I have 'N' clients running, then the time I can spend on each callback <br>
for processing is <br>
= (audio_buffer_period  -  ( process_time * N ) ) <br>
<br>
Is that correct ? <br>
<br>
-ben <br>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Paul Davis <paul@linuxaudiosystems.com><br>
<b>Sent:</b> Thursday, September 14, 2017 11:10 PM<br>
<b>To:</b> benravin<br>
<b>Cc:</b> linux-audio-dev@lists.linuxaudio.org<br>
<b>Subject:</b> Re: [LAD] Jack buffer requirements</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">JACK has no requirements other than that you can run your process() callback without blocking, every time.<br>
<br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">How much buffering needs to exist to make sure that can happen depends hugely on what the non-RT part of things is doing. For comparison, when the non-RT part does disk i/o, you need
 to be ready for potentially several seconds of delay in refilling (or emptying) buffers.  If the disk i/o wasn't there, the buffering requirements would be much smaller.<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Sep 14, 2017 at 1:10 PM, benravin <span dir="ltr">
<<a href="mailto:ben.alex@outlook.com" target="_blank">ben.alex@outlook.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I want to know the optimal buffering which i can use for designing my<br>
application.<br>
<br>
My use case is as follows, I receive digital radio signals through a tuner<br>
and does the channel and audio decoding in separate threads.<br>
Finally the audio is send to jack callback  and played out.<br>
<br>
How much of buffering is enough for real time streaming between threads.<br>
I want keep the optimal buffering between these threads.<br>
<br>
Please suggest guidelines for using with Jack.<br>
<br>
-ben<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://linux-audio.4202.n7.nabble.com/linux-audio-dev-f58952.html" rel="noreferrer" target="_blank">
http://linux-audio.4202.n7.<wbr>nabble.com/linux-audio-dev-<wbr>f58952.html</a><br>
______________________________<wbr>_________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.<wbr>linuxaudio.org</a><br>
<a href="https://lists.linuxaudio.org/listinfo/linux-audio-dev" rel="noreferrer" target="_blank">https://lists.linuxaudio.org/<wbr>listinfo/linux-audio-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>