diff options
author | Mike Brady <mikebrady@eircom.net> | 2018-08-13 14:06:40 +0100 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2018-08-13 14:06:40 +0100 |
commit | a8cfc9915f05e3fcb8dc725dd89f0197bb4ee234 (patch) | |
tree | 0db210acf56d376a8d34a015f617a86b06ca6403 /player.h | |
parent | df18e3a017ce2e744ab104de171e8934eba35e70 (diff) |
display the number of samples used to calculcate drift, clean up the settings for the number of samples to skip at the start and for the minimum number of samples to use. Store 64 samples.
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,7 @@ #include "alac.h" #include "audio.h" -#define time_ping_history 32 +#define time_ping_history 64 // at 1 per three seconds, approximately three minutes of records typedef struct time_ping_record { uint64_t local_to_remote_difference; @@ -207,6 +207,7 @@ typedef struct { pthread_mutex_t reference_time_mutex; double local_to_remote_time_gradient; // if no drift, this would be exactly 1.0; likely it's slightly above or below. + int local_to_remote_time_gradient_sample_count; // the number of samples used to calculate the gradient uint64_t local_to_remote_time_difference; // used to switch between local and remote clocks uint64_t local_to_remote_time_difference_measurement_time; // when the above was calculated |