<div dir="ltr">
<span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi Georg,</span><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I was working on simple Openwrt Platform, and Source device is Android phone Bluetooth with Youtube app 24 hrs live streaming video and alsa device is speaker, which is hardwired</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">The 12 hrs testing which i did on pulseaudio-11.1 are without my modification. The basic modification which i made in the previous pulseaudio-8.0 is with the idle state of bluez_source card (i.e., card is vanishing when the song is in the pause state) and did some changes to buffers of pulseaudio to reduce the latency. But in pulseaudio-11.1 i didn't do all the changes as i didn't find any initial latency. but periodic latency after 12hrs still exists. The issue is reproducible with Gstreamer also. </div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">I haven't worked on microphone scenarios, I'm just working on music player and speaker.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Let me clear you some test scenarios for better understanding,</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Case 1: Android phone as source (bluez_source) and device with internal speaker (alsa-sink as sink for pulseaudio) -------> delay after 12hrs exists.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Case 2: Device with Gstreamer as source and same device with internal speaker (pulsesink with <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">alsa card as sink for pulseaudio</span>) ----------> delay after 12 hrs exists.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Case 3: Device with Gstreamer as source and External Bluetooth speaker (pulsesink with bluez_sink card) -----------> No delay after 12 hrs.</div><br class="gmail-Apple-interchange-newline">
<br><br><div class="gmail_quote"><div dir="ltr">On Sun, Jul 29, 2018 at 3:09 PM Georg Chini <<a href="mailto:georg@chini.tk">georg@chini.tk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-4744615930817358801moz-cite-prefix">On 28.07.2018 11:20, Harish Gaddameedi
wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">Dear Georg,
<div dir="auto"><br>
</div>
<div dir="auto">Thanks for reply, </div>
<div dir="auto"><br>
</div>
<div dir="auto">As you have suggested. I have updated the
pulseaudio to the later version which is after pulseaudio-10.0
(i.e., pulseaudio-11.1). We have found that the delay is still
exists after playing any music upto 12hrs. We found like the
audio and video are completely out of sync with a delay of 4-5
seconds. </div>
<div dir="auto"><br>
</div>
<div dir="auto">In the change log between pulseaudio-11.1 and
pulseaudio-12.2, i haven't seen any updates regarding
latency. I hope that the latency will also be exist in
pulseaudio-12.2 also.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks, </div>
<div dir="auto">Harish Gaddameedi. </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri 27 Jul, 2018, 11:20 AM Georg Chini, <<a href="mailto:georg@chini.tk" target="_blank">georg@chini.tk</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-4744615930817358801m_-8023794720694259708moz-cite-prefix">On
27.07.2018 07:10, Harish Gaddameedi wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I'm working on an Application using
pulseaudio package using pulseaudio-8.0, made lot of
modifications in the pulseaudio to reduce the
fluctuation of source card and to reduce the initial
latency, I'm successful in doing this process. On 12 hrs
testing of audio with alsa-sink module, I'm finding the
latency of 4-5 seconds. When testing the same 12hrs in
connection with External bluetooth speaker, there is no
latency found.
<div><br>
<div>After the 12 hrs testing with alsa-sink, latency
from Module-loopback is showing as less than 300ms
which is fine. but the latency reproducible is upto
4-5seconds. <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Can
anyone give me a quick pointer if you have faced
the similar issue?</span><br>
<div>
<div><br>
</div>
<div dir="ltr" class="m_-4744615930817358801m_-8023794720694259708gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Thanks,</div>
<div>Harish Gaddameedi</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
</blockquote>
<p>Hi,</p>
<p>I would suggest to update to a newer version of PA.
Current version is 12.2.<br>
Module-loopback did not control the latency very well
prior to 10.0. If you<br>
have the same issue with a current PA version, this would
need more<br>
investigation.</p>
<p>Regards<br>
Georg<br>
</p>
</div>
</blockquote>
</div>
</blockquote>
<p>Hello Harish,</p>
<p>what kind of alsa device are you using on what platform? What did
you modify<br>
within PA? Did you try 11.1 without your modifications? What
exactly is your setup?<br>
</p>
<p>If you are talking about A/V synchronization, the player may also
be the cause of<br>
the issue. Sound card time does not necessarily match system time,
so the player<br>
has to take care of the difference. The bluetooth A2DP sink uses
the system clock<br>
for timing, that's probably why you don't have the problem there.
Does something<br>
similar happen when you loop back your microphone to the ALSA
sink?<br>
</p>
<p>I have run module-loopback for days on an Intel platform with
standard hda-intel<br>
and USB devices without seeing any delays. Also, in 11.1 there
should be no need<br>
to reduce initial latency because module-loopback will adjust
quickly to the latency<br>
you requested.<br>
</p>
Regards<br>
<p> Georg<br>
</p>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Regards,</div><div>Harish Gaddameedi</div></div></div></div></div></div></div></div>