<div dir="ltr"><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">​So you want to stretch/shrink the newly-switched-to audio so that it "catches​ up" with the just-switched-from audio and then runs at normal speed?<br><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">This strikes me as madness, but hey, good luck!<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 17, 2018 at 4:16 AM, Benny Alexandar <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">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><span class="">
<div><font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt">>>><font face="arial,Helvetica,sans-serif" size="2"><span style="font-size:11pt">why would you need to resample/stretch them?</span></font><font face="arial,Helvetica,sans-serif" size="2"><span style="font-size:11pt"><br>
</span></font> <font face="arial,Helvetica,sans-serif">​</font></span></font></div>
</span><div><font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt"><font face="arial,Helvetica,sans-serif">As mentioned earlier the two audio are identical but one will be ahead/delayed than other.
</font><font face="arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div><font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt"><font face="arial,Helvetica,sans-serif">The user who is listening to it should not notice the switching, and this
</font><font face="arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div><font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt"><font face="arial,Helvetica,sans-serif">switching happens when the quality of one audio is degraded compared to other.
</font><font face="arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div><font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt"><font face="arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div><font face="Calibri,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt"><font face="arial,Helvetica,sans-serif">-ben</font></span></font></div>
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_5592987197815866829divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Paul Davis <<a href="mailto:paul@linuxaudiosystems.com" target="_blank">paul@linuxaudiosystems.com</a>><br>
<b>Sent:</b> Sunday, June 17, 2018 12:01 AM<br>
<b>To:</b> Benny Alexandar<br>
<b>Cc:</b> Ralf Mardorf; <a href="mailto:linux-audio-user@lists.linuxaudio.org" target="_blank">linux-audio-user@lists.<wbr>linuxaudio.org</a><span class=""><br>
<b>Subject:</b> Re: [LAU] Audio seamless switch</span></font>
<div> </div>
</div>

<div>
<div dir="ltr">
<div class="m_5592987197815866829x_gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div><div><div class="h5">
<div class="m_5592987197815866829x_gmail_extra"><br>
<div class="m_5592987197815866829x_gmail_quote">On Sat, Jun 16, 2018 at 2:13 PM, Benny Alexandar <span dir="ltr">
<<a href="mailto:ben.alex@outlook.com" target="_blank">ben.alex@outlook.com</a>></span> wrote:<br>
<blockquote class="m_5592987197815866829x_gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
>> <font size="2"><span style="font-size:11pt">What is the reason that signal<br>
1 is ahead of signal 2? </span></font></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
For various reason, one audio receiving from network and <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
other thru air. <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
>> <font size="2"><span style="font-size:11pt">Perhaps a simple delay is what you are looking for, but maybe you need<br>
resampling.</span></font></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Yes delay estimation is required as the delay is not known upfront. <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
In addition to re-sampling stretching also required. <br>
</div>
</div>
</blockquote>
<div><br>
<div class="m_5592987197815866829x_gmail_default" style="font-family:arial,helvetica,sans-serif">​that turns it into a totally different problem. You originally said: ​<br>
<br>
      <font size="2"><span style="font-size:11pt"><span class="m_5592987197815866829x_gmail-">two identical audio inputs say A1 & A2.<br>
<br>
</span></span></font></div>
<div class="m_5592987197815866829x_gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="font-size:11pt"><span class="m_5592987197815866829x_gmail-">why would you need to resample/stretch them?<br>
</span></span></font></div>
 
<div class="m_5592987197815866829x_gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
​<br>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>