Commit Graph

124 Commits

Author SHA1 Message Date
Hubert Pham 04f2db1222 Support callables in stream_callback.
Thanks to John Luebs and Bastian Bechtold for patch.
2012-10-19 16:41:08 -04:00
Hubert Pham d35ff7a829 Update version number and copyright. 2012-09-01 22:59:33 -04:00
Hubert Pham f3f8c5e2cb Update release notes. 2012-09-01 17:04:09 -04:00
Hubert Pham b6736b5375 Merge branch 'misc-fixes' 2012-09-01 17:03:59 -04:00
Hubert Pham 27424b6045 Cosmetic cleanup. 2012-09-01 14:49:49 -04:00
Hubert Pham bcbfcd8ab5 PyAudio: in terminate, copy list of streams before iterating.
PyAudio.terminate iterates over a list of streams and closes them.
This change makes a copy of the list to prevent a RuntimeError, as
closing a stream has a side-effect of modifying the list of streams
(mid-iteration).
2012-09-01 14:08:47 -04:00
Hubert Pham 73cc135bbc MacOSX channel maps: clear out pointer to avoid free() crash. 2012-09-01 14:08:47 -04:00
Hubert Pham b087335fdf Merge branch 'py2to3' 2012-09-01 14:08:15 -04:00
Hubert Pham 5a547e0cd1 Cleanup: remove low-level module tests, as they are not useful. 2012-09-01 14:07:06 -04:00
Hubert Pham 801b8a21f8 Setup.py: allow manual override of Mac sysroot to build for Python 3. 2012-09-01 14:07:06 -04:00
Hubert Pham a271c17c54 2to3: support ints and longs in Python 2. 2012-09-01 14:07:06 -04:00
Hubert Pham ab339f8352 2to3: fix print statements. 2012-09-01 14:07:06 -04:00
Hubert Pham 1615e4ce80 2to3: remove module state to simplify initialization. 2012-09-01 14:07:06 -04:00
Hubert Pham 1125da6f99 Py2to3: initial patch. 2012-09-01 14:07:06 -04:00
Hubert Pham ba10e04d1e Merge branch 'nonblocking' 2012-09-01 14:05:45 -04:00
Hubert Pham 9de8018304 Non-blocking: combine timing info for callback as suggested by Bastian. 2012-09-01 13:55:39 -04:00
Hubert Pham 1bc6abb9b6 Cosmetic cleanup. 2012-09-01 13:55:39 -04:00
Hubert Pham 4036322c68 Non-blocking: update epydoc documentation. 2012-09-01 13:55:39 -04:00
Hubert Pham 4287326f36 Non-blocking: support read-only streams. 2012-09-01 13:55:39 -04:00
Hubert Pham 51eafbef69 Non-blocking: fix referencing counting memory leak. 2012-09-01 13:55:39 -04:00
Hubert Pham 3d3c57ffbe Non-blocking: increment reference to callback function object. 2012-09-01 13:55:39 -04:00
Hubert Pham 9a99f93bb0 Error handling: show stacktrace and set asyc exception on callback error. 2012-09-01 13:55:39 -04:00
Hubert Pham eedfb3dd8f Non-blocking: use a C struct for callback context. 2012-09-01 13:55:39 -04:00
Hubert Pham ca85fd0d5f Non-blocking: add wire and playback test. 2012-09-01 13:55:39 -04:00
Hubert Pham 2a8d011698 Non-blocking: add more logging. 2012-09-01 13:55:39 -04:00
Hubert Pham 6f9efe0ba3 Non-blocking: add status to callback. 2012-09-01 13:55:39 -04:00
Hubert Pham 742b3b3781 Non-blocking: refactor C callback error handling. 2012-09-01 13:55:39 -04:00
Hubert Pham ab8c3259fa Non-blocking: return bytes (for captured audio) instead of bytearray. 2012-09-01 13:55:39 -04:00
Hubert Pham b6d5593a2b Cosmetic changes. 2012-09-01 13:55:39 -04:00
Hubert Pham 1fb9e8db6c Fix warnings. 2012-09-01 13:55:38 -04:00
Hubert Pham 3f5bc25c72 Non-blocking: call PyEval_InitThreads to prevent segfault. 2012-09-01 13:55:38 -04:00
Hubert Pham 3f55f344a0 Non-blocking: enforce upper bound of bytes copied to prevent buffer overflow. 2012-09-01 13:55:38 -04:00
Hubert Pham 3b8fdb72e7 Non-blocking: decrement reference counts for temporary values. 2012-09-01 13:55:38 -04:00
Hubert Pham ed2bbdfc9a Non-blocking: initial contribution from Bastian Bechtold.
Thanks Bastian!
2012-09-01 13:54:56 -04:00
Hubert Pham 775aaca9ee Merge branch '0.2.4' 2010-09-01 15:25:39 -04:00
Hubert Pham 04442d1976 Add MANIFEST template and amend Makefile clean, tarball targets. 2010-09-01 15:25:12 -04:00
Hubert Pham 05ad8ab587 Move tests --> test. 2010-08-14 18:06:27 -04:00
Hubert Pham 24e2d62393 Add .gitignore. 2010-08-14 17:56:35 -04:00
Hubert Pham dda3aff3d3 Update version number, installation instructions, and changelog. 2010-08-14 16:59:57 -04:00
Hubert Pham 64abac6cea Remove whitespace. 2010-08-14 16:51:29 -04:00
Hubert Pham ed6c985095 Update setup.py for updated directory layout. 2010-08-14 16:46:52 -04:00
Hubert Pham dd29f48050 Reorganized directory layout. 2010-08-14 16:25:37 -04:00
Hubert Pham 2059c5d707 Merge branch '0.2.3' into new-master 2010-08-09 03:46:33 -04:00
Hubert Pham 2f4330f7a5 Additional updates to version references.
git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@37 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00
Hubert Pham 2aef341c4b Update packaging for release 0.2.3.
- Updated packaging Makefile (for Mac OS X, Win32, Debian/Ubuntu debs).

  - Updated INSTALL; added CHANGELOG.

  - Added -fno-strict-aliasing gcc flag to setup.py.

git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@34 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00
Hubert Pham cf3fc6a29b Cosmetic changes (part 3, header file).
git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@33 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00
Hubert Pham 041e45ac48 Cosmetic changes (part 2, remove trailing whitespace).
git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@32 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00
Hubert Pham e6df9fbddb Cosmetic changes (part 1, coding style).
git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@31 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00
Hubert Pham 5bb6f331f6 Update documentation.
git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@30 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00
Hubert Pham 6f98b6c5b9 Initial cosmetic changes.
- Changed version number --> 0.2.3.
 - Some stylistic changes (for consistency).

git-svn-id: https://svn.csail.mit.edu/pyaudio/trunk@29 b6966296-9315-0410-889a-8473bed30898
2010-08-09 03:46:00 -04:00