Hi,<br><br>I tried the pulse cookie method. Here is what I did:<br><br>- on the local sound server side, I copied ~/.pulse-cookie to the remote sound client to /etc/pulse/pulse-cookie-n900<br>- on the remote sound client side, I added the following two lines to /etc/pulse/client.conf:<br>
default-server = localhost<br> cookie-file = /etc/pulse/pulse-cookie-n900<br>- on the remote sound client side, I made /etc/pulse/pulse-cookie-n900 permissions 644<br>- on the local sound server side, I did a ssh -X -R 4713:localhost:4713 <remote-sound-client> "PULSE_LOG=99 pactl stat"<br>
The following output of "pactl stat" follows:<br>--------------------------------------------------<br>Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472<br>
Trying to connect to localhost:4713...<br>SHM possible: yes<br>Protocol version: remote 16, local 16<br>Negotiated SHM: no<br>Connection failure: Connection terminated<br>--------------------------------------------------<br>
<br>and pulseaudio daemon reports "protocol error, kicking client"<br><br>So no luck with cookies either. I could try and upgrade pulseaudio on the local server side, but it is going to be tricky.<br><br>br,<br>
Quinn<br><br><div class="gmail_quote">On Mon, May 23, 2011 at 10:29 AM, Colin Guthrie <span dir="ltr"><<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
'Twas brillig, and Quinn Plattel at 23/05/11 05:52 did gyre and gimble:<br>
<div class="im">> HI.<br>
><br>
> Last post on this thread, then I will start a new one.<br>
> I managed to cut down the delay considerably by simplifying the commands:<br>
><br>
> local sound server: ssh -L 5901:localhost 5901 -L 1234:localhost:1234<br>
> <remote sound client> *parec | nc -l 1234"<br>
> local sound server: nc localhost 1234 | pacat<br>
><br>
> The advantage with this is that the volume can be controlled manually<br>
> with the local sound server's volume control and the delay is cut down<br>
> to 3-5 seconds.<br>
<br>
<br>
</div>The commands and procedure I outlined before is working fine and is free<br>
from bizarre work arounds. I'm not sure if the protocol error you are<br>
getting is coming form a bug in the client side or the server side, but<br>
either way it can be easily fixed if it's debugged appropriately.<br>
<br>
The lack of a cookie can be solved in several ways (e.g. by copying the<br>
~/.pulse_cookie file between machines, or by setting up anonymous<br>
authentication when loading the TCP protocol module).<br>
<br>
I don't think your workaround (while creative) is the right way to go.<br>
Far a start parec|pacat has no dynamic sample rate adjustments to<br>
compensate for different clocks.<br>
<br>
Also with the parec command it seems you are connecting to to the remote<br>
PA daemon and recording from a monitor source (assuming no real source<br>
exists on the machine, the monitor source would be the default) so as to<br>
capture the sound which you then play back via pacat on the local<br>
system. If that's the case then you're already talking to the wrong PA<br>
daemon. As I said in my previous mail any client that runs on the remote<br>
system should connect *directly* (via SSH tunnel) to the remote PA. I'm<br>
sure it wouldn't take too long to work out the incompatibilities between<br>
the two protocol versions, but perhaps the one in Maemo has some kind of<br>
customisation applied on top that makes it generally incompatible?<br>
<br>
In general the protocol is backwards compatible and while I'd have to<br>
look, I'm not aware of any specific incompatibilities between 0.9.21 and<br>
0.9.15....<br>
<br>
<br>
But if you cannot work out the protocol error here, I guess you're work<br>
around is the easiest option :s<br>
<br>
Col<br>
<font color="#888888"><br>
<br>
<br>
--<br>
</font><div><div></div><div class="h5"><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@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards/Med venlig hilsen,<br>Quinn Plattel<br>