From: Mike Brady Date: Tue, 9 Jun 2020 08:36:12 +0000 (+0100) Subject: Make the list of remote to local timing values a power of 2 -- necessary later for... X-Git-Tag: 3.3.7d12~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efec3cc7e5201e149bcbb2da9bb129526cfab422;p=thirdparty%2Fshairport-sync.git Make the list of remote to local timing values a power of 2 -- necessary later for allowing headroom for calculations. --- diff --git a/player.h b/player.h index f79f8806..c6315aae 100644 --- a/player.h +++ b/player.h @@ -24,7 +24,8 @@ #include "alac.h" #include "audio.h" -#define time_ping_history 128 // at 1 per three seconds, approximately six minutes of records +#define time_ping_history_power_of_two 7 +#define time_ping_history (1 << time_ping_history_power_of_two) // 2^7 is 128. At 1 per three seconds, approximately six minutes of records typedef struct time_ping_record { uint64_t local_to_remote_difference;