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.
This commit is contained in:
Colin Leroy 2017-09-17 20:46:49 +02:00 committed by Tanu Kaskinen
parent 61217528a1
commit d8a2cef360
4 changed files with 62 additions and 5 deletions

View file

@ -27,6 +27,8 @@
Kungliga Tekniska högskolan.
***/
#define RAOP_DEFAULT_LATENCY 2000 /* msec */
int pa_raop_base64_encode(const void *data, int len, char **str);
int pa_raop_base64_decode(const char *str, void *data);