attempt to increase the precision of the FPS timing

This commit is contained in:
Mike Brady
2021-11-20 12:14:23 +00:00
parent c0a3dacf30
commit 5f8e6e3989
3 changed files with 162 additions and 115 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ typedef struct {
// will change dynamically, so keep watching it. Implemented in ALSA only.
// returns a negative error code if there's a problem
int (*delay)(long *the_delay); // snd_pcm_sframes_t is a signed long
int (*rate_info)(uint64_t *elapsed_time,
uint64_t *frames_played); // use this to get the true rate of the DAC
int (*rate_info)(uint64_t *measurement_time, uint64_t *delay,
uint64_t *frames_sent_to_dac); // use this to get the true rate of the DAC
// may be NULL, in which case soft volume is applied
void (*volume)(double vol);