commit 608395dd4a1edfd8112549d670ef178ef3e4fce3aaf8e15b5f4fc628fa48cc61 Author: Dirk Mueller Date: Sun Sep 8 13:22:30 2024 +0000 - update to 0.5.0: * Remove ASIO support from bundled DLLs (DLLs with ASIO can be manually selected) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sounddevice?expand=0&rev=28 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sounddevice.changes b/python-sounddevice.changes new file mode 100644 index 0000000..ad1a3dd --- /dev/null +++ b/python-sounddevice.changes @@ -0,0 +1,101 @@ +------------------------------------------------------------------- +Sun Sep 8 13:21:54 UTC 2024 - Dirk Müller + +- update to 0.5.0: + * Remove ASIO support from bundled DLLs (DLLs with ASIO can be + manually selected) + +------------------------------------------------------------------- +Mon Jun 10 09:16:40 UTC 2024 - Dirk Müller + +- update to 0.4.7: + * support paWinWasapiAutoConvert with auto_convert flag in + WasapiSettings + * Avoid exception in PortAudioError.__str__() + +------------------------------------------------------------------- +Fri Dec 29 09:41:04 UTC 2023 - Dirk Müller + +- update to 0.4.6: + * Redirect stderr with os.dup2() instead of CFFI calls + +------------------------------------------------------------------- +Fri Oct 7 16:18:39 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.4.5 + * Add index field to device dict + * Require Python >= 3.7 + * Add PaWasapi_IsLoopback() to cdef (high-level interface not yet available) + +------------------------------------------------------------------- +Mon Apr 19 01:40:25 UTC 2021 - Steve Kowalik + +- Update to 0.4.1: + * CallbackFlags attributes are now writable +- Don't build for Python 3.6, NumPy isn't available + +------------------------------------------------------------------- +Wed Jul 29 07:27:48 UTC 2020 - Marketa Calabkova + +- Update to 0.4.0 + * Drop support for Python 2.x + * Fix memory issues in `play()`, `rec()` and `playrec()` + * Example application ``play_stream.py`` + * Remove ``print_devices()``, `query_devices()` can be used instead + +------------------------------------------------------------------- +Thu Mar 26 14:13:08 UTC 2020 - Marketa Calabkova + +- Update to 0.3.15 + * This will be the last release supporting Python 2.x! + +------------------------------------------------------------------- +Fri Mar 13 08:38:23 UTC 2020 - Tomáš Chvátal + +- Fix fdupes call + +------------------------------------------------------------------- +Mon Dec 2 16:14:17 UTC 2019 - Todd R + +- Update to 0.3.14 + * Examples play_sine.py and rec_gui.py + * Redirect stderr only during initialization + +------------------------------------------------------------------- +Sun Jun 2 19:27:21 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Tue May 21 07:20:34 UTC 2019 - pgajdos@suse.com + +- version update to 0.3.13 + * Examples asyncio_coroutines.py and asyncio_generators.py +- package examples + +------------------------------------------------------------------- +Tue Dec 4 12:54:30 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Wed Oct 31 01:49:20 UTC 2018 - Todd R + +- Update to 0.3.12 + * Support for the dylib from Anaconda + +------------------------------------------------------------------- +Tue May 8 03:22:08 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.3.11 (2018-05-07): + * Support for the DLL from ``conda-forge`` +- Update to 0.3.10 (2017-12-22): + * Change the way how the PortAudio library is located +- Update to 0.3.9 (2017-10-25): + * Add `sounddevice.Stream.closed` + * Switch CFFI usage to "out-of-line ABI" mode + +------------------------------------------------------------------- +Tue Aug 8 20:40:25 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-sounddevice.spec b/python-sounddevice.spec new file mode 100644 index 0000000..18cca77 --- /dev/null +++ b/python-sounddevice.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-sounddevice +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-sounddevice +Version: 0.5.0 +Release: 0 +Summary: Module to play and record sound with Python +License: MIT +URL: https://python-sounddevice.readthedocs.io/ +Source: https://files.pythonhosted.org/packages/source/s/sounddevice/sounddevice-%{version}.tar.gz +BuildRequires: %{python_module cffi >= 1.0} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: portaudio +BuildRequires: python-rpm-macros +Requires: portaudio +Requires: python-cffi >= 1.0 +Recommends: python-numpy +BuildArch: noarch +%python_subpackages + +%description +This Python module provides bindings for the PortAudio library and a few +convenience functions to play and record NumPy arrays containing audio signals. + +%prep +%setup -q -n sounddevice-%{version} + +%build +chmod 644 examples/* +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc NEWS.rst README.rst examples +%license LICENSE +%{python_sitelib}/{_sounddevice.py,sounddevice.py} +%pycache_only %{python_sitelib}/__pycache__/{sounddevice,_sounddevice}* + +%{python_sitelib}/sounddevice-%{version}.dist-info + +%check +# no upstream tests, examples needs devices + +%changelog diff --git a/sounddevice-0.4.7.tar.gz b/sounddevice-0.4.7.tar.gz new file mode 100644 index 0000000..65100a0 --- /dev/null +++ b/sounddevice-0.4.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69b386818d50a2d518607d4b973442e8d524760c7cd6c8b8be03d8c98fc4bce7 +size 52244 diff --git a/sounddevice-0.5.0.tar.gz b/sounddevice-0.5.0.tar.gz new file mode 100644 index 0000000..6a21d90 --- /dev/null +++ b/sounddevice-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0de95277654b3d403d9c15ded3c6cedf307e9b27cc9ce7bd995a2891d0c955af +size 52564