15
0

- Update to 0.4.4

* Improves response to Pulseaudio runtime failures
  * Fixes multi-byte sound card names on macOS
  * Improves response to Windows buffer underruns
  * Improves behavior when playing nothing on Windows
  * Implements named channel map elements on Linux
  * Fixes empty soundcard list on macOS
- Adjust upstream source name in spec file
- Allow lower- and uppercase filenames for meta directory
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SoundCard?expand=0&rev=23
This commit is contained in:
2025-04-23 20:22:53 +00:00
committed by Git OBS Bridge
commit 8a042c6b8d
8 changed files with 252 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

30
LICENSE Normal file
View File

@@ -0,0 +1,30 @@
Copyright (c) 2016 Bastian Bechtold
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

3
SoundCard-0.4.3.tar.gz Normal file
View File

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

View File

@@ -0,0 +1 @@
addFilter("devel-file-in-non-devel-package .*/site-packages/soundcard/.*.py.h")

118
python-SoundCard.changes Normal file
View File

@@ -0,0 +1,118 @@
-------------------------------------------------------------------
Wed Apr 23 11:17:28 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.4.4
* Improves response to Pulseaudio runtime failures
* Fixes multi-byte sound card names on macOS
* Improves response to Windows buffer underruns
* Improves behavior when playing nothing on Windows
* Implements named channel map elements on Linux
* Fixes empty soundcard list on macOS
- Adjust upstream source name in spec file
- Allow lower- and uppercase filenames for meta directory
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
-------------------------------------------------------------------
Mon Jun 10 08:57:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.4.3:
* improves response to Pulseaudio runtime failures
* implements named channel map elements on Linux
-------------------------------------------------------------------
Mon Aug 29 03:52:21 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 0.4.2:
* adds compatibility with NixOS library naming (Thank you, shithead!)
* fixes deprecation for Python 3.10 (Thank you, Nekyo!)
* fixes deprecation in recent Numpy
-------------------------------------------------------------------
Wed Aug 25 08:51:57 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.4.1:
* fixes freezing bug on Linux during startup
* improves error reporting on Linux
* fixes crash due to use-after-free on Linux
* fixes unicode error on Windows
-------------------------------------------------------------------
Fri Feb 26 11:08:45 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- Do not build the python36 flavor on TW since numpy is a build
dependency and it doesn't support python 3.6 anymore.
-------------------------------------------------------------------
Thu Feb 25 11:38:10 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- Require the pulseaudio-daemon capability instead of the
pulseaudio package, so alternative implementations can be used
(boo#1182730).
-------------------------------------------------------------------
Tue Jul 21 05:39:41 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.4.0:
* fixes silent recordings on Windows
* get and set the pulseaudio program name on Linux
* fixes error with unicode soundcard names on Windows
* adds support for pyinstaller (v4)
* adds compatibility with Windows 7
-------------------------------------------------------------------
Mon Dec 2 17:11:34 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Update to 0.3.3
* Fix attribute error when accessing stream state
* adds experimental support for exclusive mode on Windows
* adds latency hints to the documentation
* fix exception when monitor is default pulseaudio device
* fixes deprecation warning
* fixes missing dtype declaration
* fixes sample rate conversion on macOS
* fixes silence recording on macOS
* makes mainloop a global singleton
* remove useless declaration and call to _pa_stream_get_buffer_attr()
-------------------------------------------------------------------
Thu Mar 28 14:09:10 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to source release
- Update to 0.3.0:
* Various docu updates
* Support python 3.5
-------------------------------------------------------------------
Thu Jan 3 21:34:01 UTC 2019 - Todd R <toddrme2178@gmail.com>
- README not needed anymore, license is in wheel
-------------------------------------------------------------------
Sat Dec 22 20:53:21 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Update to 0.2.2
* adds Sphinx/Readthedocs documentation
- Update to 0.2.1
* adds bug fix for IPython on Windows (Thank you, Sebastian Michel!)
-------------------------------------------------------------------
Tue Nov 6 11:06:17 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Remove information from description that is subject to be out of
date anytime, as well as development process instructions.
-------------------------------------------------------------------
Mon Nov 5 15:11:47 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Some wording cleanups.
-------------------------------------------------------------------
Wed Oct 31 05:02:27 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Initial version

73
python-SoundCard.spec Normal file
View File

@@ -0,0 +1,73 @@
#
# spec file for package python-SoundCard
#
# Copyright (c) 2025 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-SoundCard
Version: 0.4.4
Release: 0
Summary: Python package to play and record audio
License: BSD-3-Clause
URL: https://github.com/bastibe/SoundCard
Source0: https://files.pythonhosted.org/packages/source/s/soundcard/soundcard-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/bastibe/SoundCard/master/LICENSE
Source100: python-SoundCard-rpmlintrc
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?sle_version} && 0%{?sle_version} < 150300
Requires: pulseaudio
%else
Requires: pulseaudio-daemon
%endif
Requires: python-cffi
Requires: python-numpy
BuildArch: noarch
%python_subpackages
%description
SoundCard is a library for playing and recording audio without
resorting to a CPython extension. Instead, it is implemented using
CFFI and the native audio libraries of Linux, Windows and macOS.
SoundCard is cross-platform, and supports Linux/pulseaudio,
Mac/coreaudio, and Windows/WASAPI. While the interface is identical
across platforms, naming schemes and block sizes can vary between
devices and platforms.
%prep
%setup -q -n soundcard-%{version}
cp %{SOURCE1} .
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/soundcard
%{python_sitelib}/[Ss]ound[Cc]ard-%{version}.dist-info
%changelog

3
soundcard-0.4.4.tar.gz Normal file
View File

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