alsa: do the wakeup differently

Directly write from the process thread, reduces potential latency.
This commit is contained in:
Wim Taymans 2018-04-19 22:00:20 +02:00
parent 57cbc5e503
commit 64d1307684
3 changed files with 81 additions and 88 deletions

View file

@ -184,6 +184,8 @@ int spa_alsa_start(struct state *state, bool xrun_recover);
int spa_alsa_pause(struct state *state, bool xrun_recover);
int spa_alsa_close(struct state *state);
int spa_alsa_write(struct state *state, snd_pcm_uframes_t silence);
#ifdef __cplusplus
} /* extern "C" */
#endif