kopia lustrzana https://github.com/xdsopl/robot36
let buffers drain before close
rodzic
eeac53ac6a
commit
bd35f9f580
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);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue