[pulseaudio-discuss] Latency bug when module-tunnel-source and module-loopback are loaded dynamically
Olivier Delbeke
olivier.delbeke at gmail.com
Fri Oct 16 07:21:59 PDT 2015
Hi Georg,
Thanks a lot.
>> Is there some reason why you do not use the default default.pa?
Well, the default default.pa is made for PC's, right ? As I have an
embedded system, I thought I'd better load a minimal set of software,
including pulseaudio modules. Most modules are obviously not required in my
situation (jack, esound, bluetooth, ...), but I have to admit that I don't
know what things like module-always-sink, module-position-event-sounds,
module-filter-heuristics, module-filter-apply, ... do ; and if they could
help fixing the issues I'm seeing. I will try.
>> There are a few latency issues in module-loopback and I sent a patch set
a while ago which is addressing them, but I doubt that those patches would
help in your situation
We already applied one of the patches you mention (
https://github.com/pulseaudio/pulseaudio/commit/c7310f8e379915b42579adb3f5288f5bcb09ba8f
), but we didn't know that there were other ones.
>> If you have problems downloading I can also send them via mail.
They are indeed difficult to download from the web site. I would appreciate
if you could send them my mail.
Thank you and best regards,
Olivier
On Fri, Oct 16, 2015 at 3:51 PM, Georg Chini <georg at chini.tk> wrote:
> On 16.10.2015 15:10, Olivier Delbeke wrote:
>
>> Hi all,
>>
>> I'm bumping into a very strange issue : setting-up a tunnel between two
>> devices is OK (thanks to Georg), but only when the configuration is static
>> (=stored in the /etc/pulse/* configuration files), not when the same
>> modules are loaded after pulseaudio's start-up. In the second case, all
>> modules are loaded correctly, BUT the calculated latency of the tunnel is
>> obviously wrong, for example "current latency: 26695333.53 ms". And no
>> audio can be heard.
>>
>> The log is full of these :
>> module-loopback.c: Loopback overall latency is 107.15 ms + 220.18 ms +
>> 13395537.50 ms = 13395864.83 ms
>> module-loopback.c: Loopback overall latency is 107.34 ms + 0.00 ms +
>> 26188232.17 ms = 26188339.51 ms
>> module-loopback.c: Loopback overall latency is 106.28 ms + 206.58 ms +
>> 13395547.45 ms = 13395860.31 ms
>>
>> On my source unit, I have a module-null-sink "default" and a
>> module-native-protocol-tcp.
>>
>> On the destination unit, I have the following configuration
>> load-module module-udev-detect
>> load-module module-suspend-on-idle
>> load-module module-cli-protocol-tcp
>> load-module module-tunnel-source source_name=my-tunnel
>> server=192.168.100.1 source=default.monitor
>> load-module module-loopback source=my-tunnel sink=my-alsa-sink
>>
>> When I start pulseaudio with this configuration, it works. But if I
>> comment the last two lines and execute them manually using "pacmd", I get
>> no audio, the messages in the log and the huge latency.
>>
>> Does anybody know why this happens ? And how to get rid of this (I need
>> the dynamic behavior) ?
>>
>> By the way, I'm using pulseaudio 6.0 . Any chance that this would be
>> fixed in pulseaudio 7.0 ?
>>
>> Thank you and best regards,
>>
>> Olivier
>>
>> Is there some reason why you do not use the default default.pa? I would
> at least test it with
> a standard setup and clean the modules later. Just to be on the safe side.
> When I tested it,
> I loaded the modules manually and it worked fine.
> There are a few latency issues in module-loopback and I sent a patch set a
> while ago which
> is addressing them, but I doubt that those patches would help in your
> situation. You can try
> them however. See
> http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/22956
> If you have problems downloading I can also send them via mail.
>
> Regards
> Georg
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20151016/cd4d975a/attachment.html>
More information about the pulseaudio-discuss
mailing list