<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;">Yes Paul, your understanding is right. 
<br>
</span></font></div>
<div><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;"><br>
</span></font></div>
<div><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;">Rubber band audio is meant for this I guess</span></font></div>
<div><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;">(<b>Rubber Band Library</b> is a high quality software library for audio time-stretching and pitch-shifting. )</span></font></div>
<div><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;"><br>
</span></font></div>
<div><font size="3" face="Calibri,Helvetica,sans-serif" color="black"><span style="font-size:12pt;">-ben</span></font></div>
<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> Sunday, June 17, 2018 4:38 PM<br>
<b>To:</b> Benny Alexandar<br>
<b>Cc:</b> Ralf Mardorf; linux-audio-user@lists.linuxaudio.org<br>
<b>Subject:</b> Re: [LAU] Audio seamless switch</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-family:arial,helvetica,sans-serif">​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 class="x_gmail_default" style="font-family:arial,helvetica,sans-serif">This strikes me as madness, but hey, good luck!<br>
</div>
<br>
</div>
<div class="x_gmail_extra"><br>
<div class="x_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="x_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="x_m_5592987197815866829divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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="x_m_5592987197815866829x_gmail_default" style="font-family:arial,helvetica,sans-serif">
<br>
</div>
<div>
<div class="x_h5">
<div class="x_m_5592987197815866829x_gmail_extra"><br>
<div class="x_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="x_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="x_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="x_m_5592987197815866829x_gmail-">two identical audio inputs say A1 & A2.<br>
<br>
</span></span></font></div>
<div class="x_m_5592987197815866829x_gmail_default" style="font-family:arial,helvetica,sans-serif">
<font size="2"><span style="font-size:11pt"><span class="x_m_5592987197815866829x_gmail-">why would you need to resample/stretch them?<br>
</span></span></font></div>
 
<div class="x_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>
</div>
</body>
</html>