<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="text/html; charset=iso-8859-1">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body dir="ltr">
<div style="font-size:10pt">
<p style="margin-top:0; margin-bottom:0">As the Jack callback is absolute, and that won't change, you'll have to adapt to it. Keep tab on clocks to have a resampling factor which is used to resample what you have to what you need. This is by no means an easy
 task, CoreAudio on Mac works like this to sync separate audio cards into an aggregate device.</p>
<p style="margin-top:0; margin-bottom:0"> </p>
<p style="margin-top:0; margin-bottom:0">Regards</p>
<p style="margin-top:0; margin-bottom:0">/Robert </p>
<p style="margin-top:0; margin-bottom:0"> </p>
<div>
<div>
<p style="margin-top:0; margin-bottom:0">Skickat från min LG-Mobil</p>
</div>
</div>
<p id="last_enter" style="margin-top:0; margin-bottom:0"> </p>
<p style="margin-top:0; margin-bottom:0"> </p>
<p style="margin-top:0; margin-bottom:0">------ Ursprungligt meddelande------</p>
<p style="margin-top:0; margin-bottom:0"><b>Från: </b>Benny Alexandar</p>
<p style="margin-top:0; margin-bottom:0"><b>Datum: </b>sön, 25 feb 2018 12:53</p>
<p style="margin-top:0; margin-bottom:0"><b>Till: </b>jack-devel@lists.jackaudio.org;</p>
<p style="margin-top:0; margin-bottom:0"><b>Ämne:</b>[Jack-Devel] Handling adaptive number of input samples required for adaptive resampler</p>
<p style="margin-top:0; margin-bottom:0"> </p>
</div>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,<br>
<br>
I have a requirement to do a re-sampling based on drift detected on jitter buffer. 
<br>
Suppose I have set jack process callback to 128 samples, and I detected that I have to do
<br>
an resampling by 10%, ie n_in = 1.1 * nout then I need 12.8 samples more, which is not available and
<br>
has to wait for next callback. This will delay my processing. If I make my buffer size
<br>
more than 128, I may have to do a decimation based on drift in which direction.<br>
<br>
How to handle these cases of having   varying buffer size requirements ?<br>
<br>
-ben<br>
</div>
</div>
</body>
</html>