mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-16 16:15:31 +00:00
Import from divmod. Original log message:
r1269 | anthony | 2005-03-17 07:18:47 +0100 (Thu, 17 Mar 2005) | 1 line make write() return the number of bytes actually written git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@8 ec2f30ec-7544-0410-870e-f70ca00c83f0
This commit is contained in:
@@ -377,7 +377,7 @@ static PyObject *alsapcm_write(alsapcm_t *self, PyObject *args) {
|
||||
PyErr_SetString(ALSAAudioError,snd_strerror(res));
|
||||
return NULL;
|
||||
}
|
||||
return PyInt_FromLong(datalen);
|
||||
return PyInt_FromLong(res);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user