From 4fa06bed6b49e256296eda3d00cc011ff658e308 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sat, 14 May 2022 18:58:05 +1000 Subject: [PATCH] Change playstart to a 64-but unsigned int. Store time of start of connection (for initial muting). Remove a redundant flag. --- player.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/player.h b/player.h index be76e2f7..499b38e1 100644 --- a/player.h +++ b/player.h @@ -167,7 +167,9 @@ typedef struct { volatile int watchdog_barks; // number of times the watchdog has timed out and done something int unfixable_error_reported; // set when an unfixable error command has been executed. - time_t playstart; + uint64_t playstart; + uint64_t connection_start_time; // the time the device is selected, which could be a long time + // before a play pthread_t thread, timer_requester, rtp_audio_thread, rtp_control_thread, rtp_timing_thread, player_watchdog_thread; @@ -282,7 +284,6 @@ typedef struct { // this is what connects an rtp timestamp to the remote time int anchor_remote_info_is_valid; - int anchor_clock_is_new; // these can be modified if the master clock changes over time uint64_t anchor_clock;