From 21d16b1ad5499233037097a1e70b3bf1d3935c2b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 Jul 2023 17:01:09 +0200 Subject: [PATCH] module-raop: zero uppet timestamp bits The Audiopro link1 seems to want to upper bits of the timestamp in sync messages as 0. It still seems to work with Sonos. See #3247 --- src/modules/module-raop-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index be03e3726..c70eb9cff 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -317,7 +317,7 @@ static int send_udp_sync_packet(struct impl *impl, pkt[0] |= htonl(0x10000000); pkt[1] = htonl(rtptime - latency); transmitted = ntp_now(); - pkt[2] = htonl(transmitted >> 32); + pkt[2] = htonl((transmitted >> 32) & 0x0000ffff); pkt[3] = htonl(transmitted & 0xffffffff); pkt[4] = htonl(rtptime);