I restored client.conf and used some magic in pacmd:<div><br></div><div> load-module module-tunnel-sink server=192.168.1.2<div> load-module module-combine sink_name=combined slaves=alsa_output.hw_0_0,tunnel.192.168.1.2 adjust_time=5 resample_method=src-sinc-medium-quality</div>
<div> set-default-sink combined</div><div><br></div><div>and now it works! But sound is noticeable desyncronized and laggy on _local_ machine. Also, local pulseaudio daemon says:</div><div><br></div><div><div>W: module-combine.c: [alsa_output.hw_0_0] sample rates too different, not adjusting (44100 vs. 36692).</div>
<div>W: module-combine.c: [alsa_output.hw_0_0] sample rates too different, not adjusting (44100 vs. 38519).</div><div>W: module-combine.c: [alsa_output.hw_0_0] sample rates too different, not adjusting (44100 vs. 38930).</div>
</div><div><br></div>Any way to fix this?</div><div><br><div class="gmail_quote">2011/6/13 Colin Guthrie <span dir="ltr">&lt;<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
&#39;Twas brillig, and Sergey M. at 13/06/11 05:57 did gyre and gimble:<br>
<div class="im">&gt; Hello. I am trying to make simultaneous output to local and remote sound<br>
&gt; cards (i.e. to stream sound from my notebook both to notebook speakers<br>
&gt; and to remote pc with hi-fi sound system). I tuned client.conf on<br>
</div>&gt; notebook and <a href="http://default.pa" target="_blank">default.pa</a> &lt;<a href="http://default.pa" target="_blank">http://default.pa</a>&gt; on remote machine. Network<br>
<div class="im">&gt; streaming works nicely. Then, I tried to use alsa &quot;multi&quot; plugin to have<br>
&gt; simultaneous output:<br>
<br>
</div>snip...<br>
<div class="im"><br>
&gt; But this doesn&#39;t work - I have sound only on remote machine somewhy. I<br>
&gt; also tried &quot;copy&quot; plugin, unsuccessfully too.<br>
<br>
</div>Don&#39;t use alsa level stuff. The only alsa level config should be to push<br>
audio to PA and then forget all alsa things!<br>
<div class="im"><br>
&gt; Maybe pulseaudio has it&#39;s own instruments to implement this? I read tons<br>
&gt; of howtos and documentation, but cannot realize what to do now. :(<br>
<br>
</div>PulseAudio has a combine plugin. Just load the combine sink and you&#39;ll<br>
get a new virtual sink that outputs to both local and remove sinks.<br>
<br>
You can read about this on our wiki:<br>
<a href="http://pulseaudio.org/wiki/Modules#module-combine" target="_blank">http://pulseaudio.org/wiki/Modules#module-combine</a><br>
<br>
There is even a ticky box in paprefs (but here it only uses local<br>
devices, not network tunnels.<br>
<br>
Of course you say above you&#39;ve tuned client.conf. This should also not<br>
be done. Machines should typically always talk to their own PA daemon on<br>
the local machine, but it in turn should be configured to use a Tunnel<br>
Sink. This will allow you to switch apps from local to remote with ease<br>
via pavucontrol. Again, module tunnel can be configured as per the<br>
details on the above link. It can even work automatically with<br>
zeroconf/avahi.<br>
<br>
Col<br>
<br>
<br>
<br>
<br>
--<br>
<br>
Colin Guthrie<br>
gmane(at)<a href="http://colin.guthr.ie" target="_blank">colin.guthr.ie</a><br>
<a href="http://colin.guthr.ie/" target="_blank">http://colin.guthr.ie/</a><br>
<br>
Day Job:<br>
  Tribalogic Limited [<a href="http://www.tribalogic.net/" target="_blank">http://www.tribalogic.net/</a>]<br>
Open Source:<br>
  Mageia Contributor [<a href="http://www.mageia.org/" target="_blank">http://www.mageia.org/</a>]<br>
  PulseAudio Hacker [<a href="http://www.pulseaudio.org/" target="_blank">http://www.pulseaudio.org/</a>]<br>
  Trac Hacker [<a href="http://trac.edgewall.org/" target="_blank">http://trac.edgewall.org/</a>]<br>
<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" target="_blank">http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br></div>