alsa: keep track of input and output latency

track and report both input and output latency.
This commit is contained in:
Wim Taymans 2021-06-24 09:43:58 +02:00
parent ed9560fb03
commit 8cf5927e95
5 changed files with 49 additions and 13 deletions

View file

@ -44,7 +44,7 @@ struct spa_latency_info {
uint64_t max_ns;
};
#define SPA_LATENCY_INFO(dir) (struct spa_latency_info) { .direction = (dir) }
#define SPA_LATENCY_INFO(dir,...) (struct spa_latency_info) { .direction = (dir), ## __VA_ARGS__ }
static inline int
spa_latency_info_compare(const struct spa_latency_info *a, struct spa_latency_info *b)