forked from auracaster/pyalsaaudio
remove stray snd_pcm_prepare() call from alsapcm_write()
this came from438e52e, which tried to partially revertc2a6b6e, but inserted a chunk that actually belonged to alsapcm_drop(). the latter does not need to be restored, as we now handle SND_PCM_STATE_SETUP prior to reading/writing.
This commit is contained in:
committed by
Lars Immisch
parent
8ff3e169cd
commit
061c297f4b
+1
-2
@@ -1495,8 +1495,7 @@ static PyObject *alsapcm_write(alsapcm_t *self, PyObject *args)
|
||||
if (res == -EAGAIN) {
|
||||
rc = PyLong_FromLong(0);
|
||||
}
|
||||
res = snd_pcm_prepare(self->handle);
|
||||
if (res < 0)
|
||||
else if (res < 0)
|
||||
{
|
||||
PyErr_Format(ALSAAudioError, "%s [%s]", snd_strerror(res),
|
||||
self->cardname);
|
||||
|
||||
Reference in New Issue
Block a user