diff options
author | Mike Brady <mikebrady@eircom.net> | 2018-08-13 14:44:22 +0100 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2018-08-13 14:44:22 +0100 |
commit | 2f588562686c8eaeee794a510b49f4eba2471bf5 (patch) | |
tree | b2fdf3ad9f7ba44faddc09303795564c7ca17c84 /player.h | |
parent | a8cfc9915f05e3fcb8dc725dd89f0197bb4ee234 (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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |