belangeo / pyo

Python DSP module
GNU Lesser General Public License v3.0
1.32k stars 132 forks source link

Fix for #241: Python 3.10 breaks SfPlayer #247

Closed CristiFati closed 2 years ago

CristiFati commented 2 years ago

Attempt to fix #241 (also reported: [SO]: PyAudio.write SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats).

Defines PY_SSIZE_T_CLEAN in setup.py.

Some (new) compiler warnings are generated, as the macro is already defined (manually) in some .c files. Those definitions should be removed (not sure if they previously served a purpose), considering that setup.py is the official build method, but anyway that could be the subject of another (cleanup) PR.

Tests

Note: Currently, the behavior has only been suppressed meaning that it will work just like in older Python versions, but it will not properly handle the case it was introduced for (containers having more than 2 Gi elements).

CristiFati commented 2 years ago

Closing as being replaced by #248.