forked from auracaster/pyalsaaudio
Merge #80
This commit is contained in:
@@ -440,6 +440,7 @@ alsapcm_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||||||
static void alsapcm_dealloc(alsapcm_t *self)
|
static void alsapcm_dealloc(alsapcm_t *self)
|
||||||
{
|
{
|
||||||
if (self->handle) {
|
if (self->handle) {
|
||||||
|
snd_pcm_pause(self->handle, 1);
|
||||||
snd_pcm_drain(self->handle);
|
snd_pcm_drain(self->handle);
|
||||||
snd_pcm_close(self->handle);
|
snd_pcm_close(self->handle);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user