<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
I'm new on this mailing-list. I tried asking this question on
general-purpose forums, but I realise this is too specific. I hope this
place is better suited.<br>
<br>
I have my own server. And I thought it would be nice to have this
server hooked up to the HiFi, and thus enable any PC on the LAN to send
sound to the HiFi!<br>
<br>
Setup was not straightforward, none the least because Mandriva's
paprefs seems to be partly broken, and there's ZERO documentation on
Pulseaudio networking on Mandriva. Still, I managed; all in all, it's
just a matter of:<br>
&#8212; adding
<pre class="prettyprint"><span class="pln">        load</span><span class="pun">-</span><span
 class="kwd">module</span><span class="pln"> </span><span class="kwd">module</span><span
 class="pun">-</span><span class="kwd">native</span><span class="pun">-</span><span
 class="pln">protocol</span><span class="pun">-</span><span class="pln">tcp
        load</span><span class="pun">-</span><span class="kwd">module</span><span
 class="pln"> </span><span class="kwd">module</span><span class="pun">-</span><span
 class="pln">zeroconf</span><span class="pun">-</span><span class="pln">publish</span></pre>
to /etc/pulse/default.pa on the (Debian) server,<br>
&#8212; adding
<pre class="prettyprint"><span class="pln">        load</span><span class="pun">-</span><span
 class="kwd">module</span><span class="pln"> </span><span class="kwd">module</span><span
 class="pun">-</span><span class="pln">zeroconf</span><span class="pun">-</span><span
 class="pln">discover</span></pre>
to /etc/pulse/default.pa on the (Mandriva) client,<br>
&#8212; managing authentication, either through ACL or with cookies.<br>
<br>
Alternately, the whole zeroconf parts can be replaced by a single line
on the client side (I got this line thanks to paman; it was probably
generated by zeroconf-discover in the first place):<br>
<pre class="prettyprint"><span class="pln">        load</span><span class="pun">-</span><span
 class="kwd">module</span><span class="pln"> </span><span class="kwd">module</span><span
 class="pun">-</span><span class="pln">tunnel</span><span class="pun">-</span><span
 class="pln">sink server</span><span class="pun">=[</span><span
 class="pln">my_server_IP</span><span class="pun">]:</span><span
 class="lit">4713</span><span class="pln"> sink</span><span class="pun">=</span><span
 class="pln">alsa_output</span><span class="pun">.</span><span
 class="pln">hw_0 format</span><span class="pun">=</span><span
 class="pln">s16le channels</span><span class="pun">=</span><span
 class="lit">2</span><span class="pln"> rate</span><span class="pun">=</span><span
 class="lit">44100</span><span class="pln"> sink_name</span><span
 class="pun">=</span><span class="pln">tunnel</span><span class="pun">.</span><span
 class="pln">sphinx</span><span class="pun">.</span><span class="kwd">local</span><span
 class="pun">.</span><span class="pln">alsa_output</span><span
 class="pun">.</span><span class="pln">hw_0 channel_map</span><span
 class="pun">=</span><span class="pln">front</span><span class="pun">-</span><span
 class="pln">left</span><span class="pun">,</span><span class="pln">front</span><span
 class="pun">-</span><span class="pln">right</span></pre>
<br>
<br>
Anyway, I still have two problems, which are probably related:<br>
<br>
<strong class="bbc">1/ Very chopped sound, and freezed video, when
using the tunnelled sink</strong><br>
<br>
When I play a wav file with VLC, I only get an occasional bit of sound
once in a while, even though VLC's slider seems to run fine.<br>
Curiously, when I play the same wav file with mplayer, the sound gets
perfectly to the speakers. However, mplayer itself seems to be lost. It
displays a line about like this:<br>
<pre class="prettyprint"><span class="pln">        A</span><span class="pun">:</span><span
 class="pln"> &nbsp; </span><span class="lit">0.1</span><span class="pln"> </span><span
 class="pun">(</span><span class="lit">00.1</span><span class="pun">)</span><span
 class="pln"> of </span><span class="lit">1.0</span><span class="pln"> </span><span
 class="pun">(</span><span class="lit">00</span><span class="pun">:</span><span
 class="lit">01.0</span><span class="pun">)</span><span class="pln"> &nbsp;</span><span
 class="lit">0.1</span><span class="pun">%</span><span class="pln"> </span></pre>
<br>
with no apparent trend up in the numbers and a regular flash of
&#8220;unknown&#8221; (if I saw correctly) between the first pair of brackets.<br>
As for video, still with mplayer, it takes ages to actually start, and
then, I have sound but no video, and mplayer is extremely slow to
respond to key strokes.<br>
<br>
I must add that networking itself is not at fault. If, instead of
relying on the tunnelled sink, I change of server with
<pre class="prettyprint"><span class="pln">        PULSE_SERVER</span><span
 class="pun">=</span><span class="pln">my_server mplayer </span><span
 class="pun">~/</span><span class="pln">my_wav_file</span><span
 class="pun">.</span><span class="pln">wav</span></pre>
then it is as good as with a local sink (which is not perfect, see
below)&#8230;<br>
<br>
So it is obviously a tunnel-specific problem. Unfortunately, changing
of PA server is not an option for me, because Mandriva's pavucontrol
(pulseaudio 0.9.21) seems unable to connect to Debian's daemon
(pulseaudio 0.9.10): I get an error about pa_context_get_card_info_list
being &#8220;Not supported&#8221;.<br>
<br>
<strong class="bbc">2/ Spurious pauses in video playback when using
local sinks</strong><br>
<br>
Now with local playback. As soon as a remote sink is available, be it
through zeroconf, or directly with the tunnel-sink module, then <em
 class="bbc">local</em> video playback on <em class="bbc">local</em>
sinks with any player (VLC, mplayer, xine) plays fine, EXCEPT (that's a
big except&#8230;) every 5 minutes or so, there's a more-or-less-15-second
pause in playback!<br>
<br>
So for now, I'm back to square one, with both
&#8220;module-zeroconf-discover&#8221; and &#8220;module-tunnel-sink&#8221; disabled on the
client side (no Pulseaudio network)&#8230;<br>
<br>
Is there a Pulseaudio veteran here that would have advice, tips, or
anything to help me?<br>
Thanks,<br>
<br>
Yves.
</body>
</html>