Simultaneous output to local and remote sound cards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Problem disapeared spontaneously, now everything is synced. By the
way, pulseaudio -vvv says:

D: module-combine.c: [alsa_output.hw_0_0] total=189.67ms sink=189.67ms
D: module-combine.c: [tunnel.192.168.1.2] total=189.15ms sink=163.55ms
I: module-combine.c: [combined] avg total latency is 189.41 msec.
I: module-combine.c: [combined] target latency is 189.67 msec.
I: module-combine.c: [alsa_output.hw_0_0] new rate is 44100 Hz; ratio is
1.000; latency is 189668 usec.
I: module-combine.c: [tunnel.192.168.1.2] new rate is 44096 Hz; ratio is
1.000; latency is 189148 usec.

One more question: how to make pulseaudio restore network tunnel sink, if
network connection was interrupted suddenly?

2011/6/13 Maarten Bosmans <mkbosmans at gmail.com>

> 2011/6/13 Sergey M. <yukyuri at gmail.com>:
> > I restored client.conf and used some magic in pacmd:
> >  load-module module-tunnel-sink server=192.168.1.2
> >  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
> >  set-default-sink combined
>
> That's the correct way to do it.
>
> > and now it works! But sound is noticeable desyncronized and laggy on
> _local_
> > machine. Also, local pulseaudio daemon says:
> > W: module-combine.c: [alsa_output.hw_0_0] sample rates too different, not
> > adjusting (44100 vs. 36692).
> > W: module-combine.c: [alsa_output.hw_0_0] sample rates too different, not
> > adjusting (44100 vs. 38519).
> > W: module-combine.c: [alsa_output.hw_0_0] sample rates too different, not
> > adjusting (44100 vs. 38930).
> > Any way to fix this?
>
> That is the result of the following line:
>
> http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/module-combine-sink.c#n229
>
> Basically difference between the estimated rates of the two sinks is
> so great that resampling one of the streams to match the other would
> probably not be a good idea. It seems there is something not working
> right with the tunnel.
>
> Have you tried it over wired lan connection?
> The more verbose output of pulseaudio -vvv when this occurs would be
> nice to have.
>
> Maarten
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110615/86f62833/attachment-0001.htm>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux