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

@ -46,7 +46,8 @@ PA_MODULE_USAGE(
"rate=<sample rate> "
"channels=<number of channels> "
"username=<authentication user name, default: \"iTunes\"> "
"password=<authentication password>");
"password=<authentication password> "
"latency_msec=<audio latency>");
static const char* const valid_modargs[] = {
"name",
@ -61,6 +62,7 @@ static const char* const valid_modargs[] = {
"channels",
"username",
"password",
"latency_msec",
NULL
};