[RAOP] [PATCH] Fix audio synchronisation

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

 



Hello,

I think I've figured out how to cleanly synchronise audio and video
with RAOP with relying on my empirical "shifting audio 2300ms in
mplayer works".

The attached patch adds 2000ms of latency (as spec'ed by Apple from
what I've found on the internet) plus the length of the last audio
packet sent to the initial latency calculation. This works great on my
computer. The added latency is 2352ms which is very close to my
empirical finding.

I'd love for others to test it with different hardware (mine's a Pioneer
N-30) and if it's deemed good, to have it merged upstream!

PS: here's a video showing the synchronisation (sorry, when slowed out
too much, you can't really hear the "bops" :
https://www.youtube.com/watch?v=iOs6XYpNdos
(At the beginning, sync isn't perfect, I suspect it's due to the
connecting etc.)
-- 
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RAOP-Correctly-compute-latency.patch
Type: text/x-patch
Size: 3110 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170722/471ef7db/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20170722/471ef7db/attachment.sig>


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

  Powered by Linux