From d8a2cef3608d21af5a13d3ff95b6bb23602dd583 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Sun, 17 Sep 2017 20:46:49 +0200 Subject: [PATCH] RAOP: Announce real latency Use predefined values depending on the server, and make it configurable. AirPlay is supposed to have 2s of latency. With my hardware, this is more 2.352 seconds after numerous tests. Switch from pausing/resuming the smoother to resetting it because the smoother got stuck returning the same value after an idle/running cycle, making latency calculation wrong. --- src/modules/raop/module-raop-discover.c | 46 +++++++++++++++++++++++-- src/modules/raop/module-raop-sink.c | 4 ++- src/modules/raop/raop-sink.c | 15 ++++++-- src/modules/raop/raop-util.h | 2 ++ 4 files changed, 62 insertions(+), 5 deletions(-) diff --git a/src/modules/raop/module-raop-discover.c b/src/modules/raop/module-raop-discover.c index d65615b26..8b7ba49b1 100644 --- a/src/modules/raop/module-raop-discover.c +++ b/src/modules/raop/module-raop-discover.c @@ -44,11 +44,14 @@ #include #include "module-raop-discover-symdef.h" +#include "raop-util.h" PA_MODULE_AUTHOR("Colin Guthrie"); PA_MODULE_DESCRIPTION("mDNS/DNS-SD Service Discovery of RAOP devices"); PA_MODULE_VERSION(PACKAGE_VERSION); PA_MODULE_LOAD_ONCE(true); +PA_MODULE_USAGE( + "latency_msec=