implement alsa capture with timers

Add timer based alsa capture support
Improve format negotiation in alsa
Better track buffer owner in the links
This commit is contained in:
Wim Taymans 2017-03-30 17:30:28 +02:00
parent 73ec9e2d24
commit 7b8bb8da6b
10 changed files with 190 additions and 337 deletions

View file

@ -158,9 +158,7 @@ struct _SpaALSAState {
size_t ready_offset;
bool started;
int n_fds;
struct pollfd fds[16];
SpaSource sources[16];
SpaSource source;
int timerfd;
bool alsa_started;
int threshold;