alsa: improve capture slave resync

When we underrun, send out a buffer of 0 samples and catch up next
time.
Detect discont in the master and resync.
This commit is contained in:
Wim Taymans 2019-04-29 10:00:42 +02:00
parent b43844e7c6
commit 5ac383e7f7
3 changed files with 46 additions and 32 deletions

View file

@ -49,7 +49,6 @@ struct impl {
struct pw_work_queue *work;
uint32_t next_position;
int last_error;
unsigned int pause_on_idle:1;