Fix calculation of latency -- honour the signs of the offset and account for the DAC buffer size.

This commit is contained in:
Mike Brady
2020-05-14 19:51:32 +01:00
parent 9bcad435bb
commit 72d7153529
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1248,7 +1248,7 @@ int dacp_get_volume(int32_t *the_actual_volume) {
} else {
debug(1, "Unexpected return code %d from dacp_get_speaker_list.", http_response);
}
} else {
} else if (http_response != 400){
debug(3, "Unexpected return code %d from dacp_get_client_volume.", http_response);
}
if (the_actual_volume) {