diff options
author | Mike Brady <mikebrady@eircom.net> | 2018-07-30 13:39:38 +0100 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2018-07-30 13:39:38 +0100 |
commit | b75c82d14a544b072fd30f181e9de16a15095fb9 (patch) | |
tree | ab870a66ff02492085f72bbf48ff98e9d4f4c645 /player.h | |
parent | 78ae53d2dcce15328804d628e7226ecdd79d6ba1 (diff) |
Add input frame rate calculation.
Diffstat (limited to 'player.h')
-rw-r--r-- | player.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -91,10 +91,22 @@ typedef struct { int32_t *sbuf; char *outbuf; - // for holding the rate information until printed out at the end of a session + // for holding the output rate information until printed out at the end of a session double frame_rate; int frame_rate_status; + // for holding input rate information until printed out at the end of a session + + double input_frame_rate; + int input_frame_rate_status; + + uint64_t frames_inward_measurement_start_time; + uint64_t frames_inward_frames_received_at_measurement_start_time; + + uint64_t frames_inward_measurement_time; + uint64_t frames_inward_frames_received_at_measurement_time; + + // other stuff... pthread_t *player_thread; abuf_t audio_buffer[BUFFER_FRAMES]; int max_frames_per_packet, input_num_channels, input_bit_depth, input_rate; |