15
0

- update to 0.5.3:

* add explicit_sample_format parameter to WasapiSettings

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sounddevice?expand=0&rev=34
This commit is contained in:
2025-11-10 09:11:45 +00:00
committed by Git OBS Bridge
commit 3ee1356f0e
6 changed files with 217 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

120
python-sounddevice.changes Normal file
View File

@@ -0,0 +1,120 @@
-------------------------------------------------------------------
Mon Nov 10 09:11:40 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.5.3:
* add explicit_sample_format parameter to WasapiSettings
-------------------------------------------------------------------
Wed May 28 08:12:54 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.5.2
* Better error if frames/channels are non-integers
-------------------------------------------------------------------
Wed Oct 23 13:30:14 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.5.1
* Windows wheel: bundle both non-ASIO and ASIO DLLs, the latter can
be chosen by defining the ``SD_ENABLE_ASIO`` environment variable
-------------------------------------------------------------------
Sun Sep 8 13:21:54 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- update to 0.4.6:
* Redirect stderr with os.dup2() instead of CFFI calls
-------------------------------------------------------------------
Fri Oct 7 16:18:39 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <steven.kowalik@suse.com>
- 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 <mcalabkova@suse.com>
- 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 <mcalabkova@suse.com>
- 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 <tchvatal@suse.com>
- Fix fdupes call
-------------------------------------------------------------------
Mon Dec 2 16:14:17 UTC 2019 - Todd R <toddrme2178@gmail.com>
- 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 <jengelh@inai.de>
- 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 <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Wed Oct 31 01:49:20 UTC 2018 - Todd R <toddrme2178@gmail.com>
- 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

67
python-sounddevice.spec Normal file
View File

@@ -0,0 +1,67 @@
#
# spec file for package python-sounddevice
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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.3
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

3
sounddevice-0.5.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c634d51bd4e922d6f0fa5e1a975cc897c947f61d31da9f79ba7ea34dff448b49
size 53150

3
sounddevice-0.5.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cbac2b60198fbab84533697e7c4904cc895ec69d5fb3973556c9eb74a4629b2c
size 53465