]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Make the list of remote to local timing values a power of 2 -- necessary later for...
authorMike Brady <mikebradydublin@icloud.com>
Tue, 9 Jun 2020 08:36:12 +0000 (09:36 +0100)
committerMike Brady <mikebradydublin@icloud.com>
Tue, 9 Jun 2020 08:36:12 +0000 (09:36 +0100)
player.h

index f79f88065024fa4ec180880f3c4ca2e980c75475..c6315aae6d771c2356cc74366582807626992120 100644 (file)
--- 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;