diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-02-13 14:32:14 +0100 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-02-18 16:53:57 +0100 |
commit | c9fb69878e06592c21f77a0caa6c77c75f4957f5 (patch) | |
tree | 21f059ce3ab1f2c605be3da109b2994f767bdc7c /plugins/alsa/alsa-softmixer.h | |
parent | 297aa8309743d570b801e917f637937c0fc904c7 (diff) |
core pcm: use the same model for writing and reading audio
Reading sound frames relies on usage of poll before calling snd_pcm_writei
Recent seeks for bugs and CPU load issues have shown that the same thing
must be done on the write side.
Thus this commit uses the same mechanism, including the dedicated event
pipe for the thread termination.
Change-Id: Ifd5407c9e27da7801623583a6f7d4a2e845b43ea
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-softmixer.h')
-rw-r--r-- | plugins/alsa/alsa-softmixer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/alsa/alsa-softmixer.h b/plugins/alsa/alsa-softmixer.h index 9710dd3..384d1b0 100644 --- a/plugins/alsa/alsa-softmixer.h +++ b/plugins/alsa/alsa-softmixer.h @@ -158,8 +158,11 @@ typedef struct { int tid; char* info; - int nbPcmFds; - struct pollfd * pollFds; + int nbPcmFdsIn; + struct pollfd * pollFdsIn; + + int nbPcmFdsOut; + struct pollfd * pollFdsOut; sem_t sem; pthread_mutex_t mutex; |