summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorMike Brady <mikebrady@eircom.net>2018-08-13 14:44:22 +0100
committerMike Brady <mikebrady@eircom.net>2018-08-13 14:44:22 +0100
commit2f588562686c8eaeee794a510b49f4eba2471bf5 (patch)
treeb2fdf3ad9f7ba44faddc09303795564c7ca17c84 /player.h
parenta8cfc9915f05e3fcb8dc725dd89f0197bb4ee234 (diff)
Add source rate calculation based on source frame and timing information, calculated from start of play session.
Diffstat (limited to 'player.h')
-rw-r--r--player.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/player.h b/player.h
index a7d961a..783c516 100644
--- a/player.h
+++ b/player.h
@@ -191,6 +191,11 @@ typedef struct {
uint64_t remote_reference_timestamp_time;
+ // used as the initials values for calculating the rate at which the source thinks it's sending frames
+ int64_t initial_reference_timestamp;
+ uint64_t initial_reference_time;
+ double remote_frame_rate;
+
// the ratio of the following should give us the operating rate, nominally 44,100
int64_t reference_to_previous_frame_difference;
uint64_t reference_to_previous_time_difference;