summaryrefslogtreecommitdiff
path: root/sounddevice.py
AgeCommit message (Collapse)Author
2017-10-21Move sounddevice.py to src/Matthias Geier
2017-10-21Remove unnecessary parenthesesMatthias Geier
2017-10-21Support for Unicode strings onPython 2.x (#104)Roel Postelmans
* Support unicode strings * Added python 3.x support for basestring * The analog to basestring in python3 is a combination of bytes and str
2017-10-14switch to cffi out-of-line ABI modetgarc
switch to out of line mode to improve sounddevice module import time. this adds a separate sounddevice_build.py file that becomes part of the setup.py build process and is only run once at install time rather than everytime the module is imported
2017-08-21For .stopped property, check for .closed firstMatthias Geier
2017-08-19For .active property, check for .closed firstMatthias Geier
This way, a closed stream can be active==False instead of throwing an exception.
2017-08-19Add .closed propertyMatthias Geier
2017-08-19Close sets the internal stream pointer to NULLMatthias Geier
As recommended in https://lists.columbia.edu/pipermail/portaudio/2017-March/001076.html
2017-07-11Release 0.3.80.3.8Matthias Geier
2017-07-01Call stream.stop() in stop()Matthias Geier
Fixes #87.
2017-07-01More ignore_errors arguments, default: TrueMatthias Geier
See #87.
2017-05-09DOC: fix _check() docstringMatthias Geier
2017-05-08add code and host error info to PortAudioErrortgarc
+ Corrected two PortAudioError exception cases to ValueError exceptions + Added PaErrorCode and host error info to the `args` attribute of `PortAudioError` class when available.
2017-04-24Created CoreAudioSettingsDavid Holl
2017-03-22fix issue #1; close open streams in exit handlertdos.apone
+ Apparently older versions of portaudio don't handle closing any open streams which would sometimes cause a segmentation fault while exiting python. This commit makes sure any open streams are closed in the atexit handler
2017-02-16Release 0.3.70.3.7Matthias Geier
2017-02-16DOC: A few documentation changesMatthias Geier
2017-02-12Update copyright year to 2017Matthias Geier
2017-02-05First try 'utf-8' then 'mbcs' on MME and DS device namesMatthias Geier
Closes #72.
2017-01-26Remove __del__Matthias Geier
2017-01-26Use 'replace' when encoding unicode device stringsMatthias Geier
Closes #62.
2017-01-26Re-introduce kind='duplex' for _StreamBaseMatthias Geier
2017-01-26Untangle a list comprehensionMatthias Geier
2017-01-26Add get_stream() function for accessing the current stream (#70)David A. Riggs
2017-01-04Simplify deriving from _StreamBaseMatthias Geier
2017-01-04Fix error from previous bugfixMatthias Geier
This time hopefully not introducing yet another error ...
2017-01-03Fix error in wrapping finished_callbackMatthias Geier
The captured variable "finished_callback" was unintentionally overwritten by a later assignment.
2016-12-30Support for CData function pointers as callbacksMatthias Geier
2016-12-19Release 0.3.60.3.6Matthias Geier
2016-11-02Fix "atexit" handlingMatthias Geier
atexit.unregister() removes all instances of the registered function, not only one, therefore nested calls didn't work like they are supposed to. See http://portaudio.com/docs/v19-doxydocs/portaudio_8h.html and https://docs.python.org/3/library/atexit.html#atexit.unregister. This commit fixes #47, which was the real reason for the change, since atexit.unregister() doesn't even exist in Python 2.
2016-09-12Release 0.3.50.3.5Matthias Geier
2016-08-28Add some more C definitionsMatthias Geier
2016-08-26Fix default.extra_settingsMatthias Geier
2016-08-26Add WasapiSettingsMatthias Geier
Closes #35.
2016-08-26Add extra_settings in check_input_settings() and check_output_settings()Matthias Geier
2016-08-25Add extra_settings and AsioSettingsMatthias Geier
See #4.
2016-08-05Release 0.3.40.3.4Matthias Geier
2016-08-04Replace double quotes with single quotes in most literalsMatthias Geier
2016-08-04DOC: use "any" as default roleMatthias Geier
2016-08-02Use MBCS encoding for MME, tooMatthias Geier
2016-08-02Return bytes in DeviceList.__repr__() for Python 2Matthias Geier
Closes #30.
2016-06-30Check for AttributeError when trying to silence stderrMatthias Geier
Closes #27.
2016-05-12DOC: State that play()/rec()/playrec() work on NumPy arraysMatthias Geier
See #25.
2016-04-11Release 0.3.30.3.3Matthias Geier
2016-04-11Check for OSError on dlopen(None)Matthias Geier
This no longer works on Windows, see http://cffi.readthedocs.org/en/latest/cdef.html#ffi-dlopen-loading-libraries-in-abi-mode
2016-03-30DOC: change python to python3Matthias Geier
2016-03-18Add "loop" argument to play()Matthias Geier
2016-03-16Release 0.3.20.3.2Matthias Geier
2016-03-13Work-around to avoid channel duplication if mapping=[1]Matthias Geier
Fixes #18.
2016-03-12Fix playrec() to allow 'data' to be arbitrary sequence typeMatthias Geier