alsa: pass current_time around in get_status()

Pass the current time around in various functions.
Make a higher precission htimestamp based get_delay() function. Seems to
work fine for playback but not for capturee.
This commit is contained in:
Wim Taymans 2022-02-10 15:18:37 +01:00
parent 3cba294b65
commit f636603844
2 changed files with 73 additions and 30 deletions

View file

@ -210,7 +210,6 @@ struct state {
int64_t sample_count;
int64_t sample_time;
uint64_t current_time;
uint64_t next_time;
uint64_t base_time;