mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-05 06:15:12 +00:00
let buffers drain before close
This commit is contained in:
parent
eeac53ac6a
commit
bd35f9f580
1 changed files with 1 additions and 0 deletions
1
alsa.c
1
alsa.c
|
|
@ -25,6 +25,7 @@ typedef struct {
|
|||
void close_alsa(pcm_t *pcm)
|
||||
{
|
||||
alsa_t *alsa = (alsa_t *)pcm;
|
||||
snd_pcm_drain(alsa->pcm);
|
||||
snd_pcm_close(alsa->pcm);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue