<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 14.10.2015 17:18, Olivier Delbeke
wrote:<br>
</div>
<blockquote
cite="mid:CAO6pHzjgK1AP-wsQiz2sEE+o+u0DYQjAE1U36qT44yF+Tg0jBg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi all,<br>
<br>
I'm struggling with a pulseaudio configuration that I expected
to be working out-of-the box (as it seems very simple).<br>
<br>
I have : <br>
* a null-sink "mynullsink"<br>
* a tunnel-sink "mytunnel"<br>
* a module-loopback to connect "mynullsink.monitor" to
"mytunnel"<br>
<br>
Content of /etc/pulse/<a moz-do-not-send="true"
href="http://default.pa">default.pa</a> is here (full
content): <br>
load-module
module-native-protocol-unix
<br>
load-module
module-suspend-on-idle
<br>
load-module module-null-sink
sink_name=mynullsink
<br>
load-module module-tunnel-sink sink_name=mytunnel
server=tcp:<a moz-do-not-send="true"
href="http://192.168.100.3:4713">192.168.100.3:4713</a>
sink=remotesink<br>
<br>
Playing a wav file directly to the tunnel works fine, all the
time : <br>
paplay sample1.wav -d mytunnel <br>
=> audio sent correctly through the tunnel <br>
However, I can see with "pacmd list-sinks" that
"mytunnel" has a "current latency" of 0ms. Normal ?<br>
<br>
To connect the null-sink and the tunnel, I do this (with
either pactl or pacmd) :<br>
pacmd load-module module-loopback source=mynullsink.monitor
sink=mytunnel<br>
=> The module is correctly loaded (as I can see with
"pacmd list-modules")<br>
<br>
But playing audio to the null-sink does not work (i.e., no
sound is forwarded to the tunnel by the loopback) : <br>
paplay sample1.wav -d mynullsink<br>
=> NO AUDIO. NO ERROR MESSAGE. VOLUMES AT 100%. STATE
RUNNING<br>
<br>
With pulseaudio 6.0, I see that the latency calculated by the
module-loopback is increased by 10s every 10s :<br>
D: [pulseaudio] module-loopback.c: Loopback overall latency is
21552.00 ms + 0.00 ms + 0.00 ms = 21552.00 ms<br>
D: [pulseaudio] module-loopback.c: Should buffer 0 bytes,
buffered at minimum 0 bytes<br>
D: [pulseaudio] module-loopback.c: [mytunnel] Updated sampling
rate to 48000 Hz.<br>
D: [pulseaudio] module-loopback.c: Loopback overall latency is
31524.00 ms + 0.00 ms + 0.00 ms = 31524.00 ms<br>
D: [pulseaudio] module-loopback.c: Should buffer 0 bytes,
buffered at minimum 0 bytes<br>
D: [pulseaudio] module-loopback.c: [mytunnel] Updated sampling
rate to 48000 Hz.<br>
<br>
With pulseaudio 4.0, the latency moves around 250ms, but there
is also no audio.<br>
<br>
There seems to be a very unexpected workaround : loading the
loopback module twice ! When I do that, I get audio, but it's
slightly disturbed (sounds like an old vinyl record). <br>
<br>
What is happening ? Does anyone have a hint ?<br>
Why can't I chain a null sink to a tunnel sink using a
loopback module ?<br>
<br>
Thank you and best regards,<br>
<br>
</div>
Olivier<br>
</div>
<br>
<br>
</blockquote>
<br>
Hi Olivier,<br>
<br>
I wonder if you also loaded module-native-protocol-tcp somewhere. I
think you need<br>
it for tunneling. Did you try to use a standard default.pa?<br>
<br>
A while ago I tried a similar setup, but instead of tunnel_sink I
used tunnel_source:<br>
<br>
On the source machine (my local network is 192.168.255.0/24):
<br>
<br>
load-module module-native-protocol-tcp
auth-ip-acl='127.0.0.1;192.168.255.0/24'
<br>
load-module module-null-sink sink_name=my_sink channels=2 rate=44100
<br>
<br>
Then I played the stream back to my_sink.
<br>
<br>
On the destination machine:
<br>
<br>
load-module module-tunnel-source server=192.168.255.x
source_name=remote_source source=my_sink.monitor
<br>
load-module module-loopback source=remote_source<br>
<br>
This worked fine and has the advantage that you can easily connect
(or re-connect) the<br>
same stream from multiple clients. Maybe you can try it this way.<br>
<br>
Regards<br>
Georg<br>
<br>
<br>
</body>
</html>