diff --git a/alsa.c b/alsa.c index 011c62a..02ef8a3 100644 --- a/alsa.c +++ b/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); }