[pulseaudio-tickets] [PulseAudio] #286: Wrong latency correction with tunnel ?
PulseAudio
trac-noreply at tango.0pointer.de
Sat May 3 01:40:57 PDT 2008
#286: Wrong latency correction with tunnel ?
---------------------------+------------------------------------------------
Reporter: Chimrod | Owner: lennart
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: module-tunnel | Severity: minor
Keywords: latency |
---------------------------+------------------------------------------------
Hello,
In my network, I tried to get a surrond sound with 2 computer : one for
the left side, and another one for the right side. The deviation between
the two computers is slow ( I can hear a difference after 30mn ), but I
tried to use module-tunnel and module-combine instead of rtp transmition.
As sound as module-combine try to adjust the frequency, the two channels
are not synchronyzed anymore; there is a small latency on the remote
computer wich I can notice immediately. Actually, it correct the
frequency, but always with a '''constant''' latency between the two
computers : there is no deviation, but the sounds are not synchronized, as
if there is something missing in the latency calculation.
I look in the source, ( pulseaduio-0.9.10 ), and I correct, in the module
/module-tunnel.c the stream_get_latency_callback function, replacing
{{{
#ifdef TUNNEL_SINK
host_usec = sink_usec + transport_usec;
#else
}}}
by :
{{{
#ifdef TUNNEL_SINK
host_usec = (sink_usec*2) + transport_usec;
#else
}}}
Now I have a true synchronization between the two computers. I didn't
search the why of this solution : this work for me and I don't know if it
will be the same for another one configuration, the source of pulseaudio
is to huge for me for inspect this.
So, I send you this ticket, and saying that this work for '''me''', and
I'm not sure it will work on '''another one''' system.
And thanks for this wonderfull soft :-)
--
Chimrod
--
Ticket URL: <http://www.pulseaudio.org/ticket/286>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list