Compare commits

...

2 Commits

Author SHA1 Message Date
Derek f749f2187e Bump version 2021-12-14 21:48:36 -07:00
Derek 2ee560056e Use Py_ssize_t for tuple return on stream methods 2021-12-14 21:46:11 -07:00
3 changed files with 4 additions and 3 deletions

2
README
View File

@ -1,5 +1,5 @@
====================================================================== ======================================================================
PyAudio v0.2.11: Python Bindings for PortAudio. PyAudio v0.2.12: Python Bindings for PortAudio.
====================================================================== ======================================================================
See: http://people.csail.mit.edu/hubert/pyaudio/ See: http://people.csail.mit.edu/hubert/pyaudio/

View File

@ -34,7 +34,7 @@ try:
except ImportError: except ImportError:
from distutils.core import setup, Extension from distutils.core import setup, Extension
__version__ = "0.2.11" __version__ = "0.2.12"
# distutils will try to locate and link dynamically against portaudio. # distutils will try to locate and link dynamically against portaudio.
# #

View File

@ -25,6 +25,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
#include "portaudio.h" #include "portaudio.h"
#include "_portaudiomodule.h" #include "_portaudiomodule.h"
@ -1291,7 +1292,7 @@ int _stream_callback_cfunction(const void *input, void *output,
PyObject *py_status_flags = PyLong_FromUnsignedLong(statusFlags); PyObject *py_status_flags = PyLong_FromUnsignedLong(statusFlags);
PyObject *py_input_data = Py_None; PyObject *py_input_data = Py_None;
const char *pData; const char *pData;
unsigned output_len; Py_ssize_t output_len;
PyObject *py_result; PyObject *py_result;
if (input) { if (input) {