Accepting request 1180113 from devel:languages:python:numeric
- Update to 1.0.5 * Update Coreaudio support. * Added to MidiNote holdmode, first/last velocity support and sendAllNotesOff method. * UI: Improved handling of system's dark mode. * Fixed PY_SSIZE_T_CLEAN macro must be defined for '#' formats. * Fixed OscReceive.addAddress not polling the address immediately. * Fixed memory leak in trigmodule. * Ensure that there is no leaking audio streams in the server when objects are deleted. * Fix Keyboard widget note off handling in hold mode. * Made SndTable, NewTable and DataTable size attribute mutable. * Improved behavior consistency of PyoTableObject.setSize method. * Fixed bug when making the size of a table bigger at runtime. * Objects writing samples in tables can now write to any PyoTableObject. * Made getRate() and getDur() methods available to all PyoTableObject. * Allow more than 10 controls in PyoObjectControl window. * Fixed linux libasound and libjack symlinks (included in version 1.0.4). - from version 1.0.4 * Replaced unsecure vsprintf function with vsnprintf in server logging functions (fixed issue #222). * Removed useless string copy in the Jack backend (fixed issue #221). * TableMorph checks table sizes before interpolating to prevent segmentation fault. * Scale's exp argument now supports float or PyoObject. * Added documentation for IFFTMatrix object. * Added support for item assigment in PyoObjectBase. * Replaced all allocation functions with python's memory interface. * Fixed Select counter type range (now accept a long long value). * Removed unwanted call to Server_process_buffers at start of an embedded audio server. * Fixed segfault in embedded pyo_end_interpreter function. * Fixed FreqShift backward shifting (issue #193). * Fixed wx assertion in Scope color rendering. * Removed deprecated files. OBS-URL: https://build.opensuse.org/request/show/1180113 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyo?expand=0&rev=4
This commit is contained in:
112
277.patch
Normal file
112
277.patch
Normal file
@@ -0,0 +1,112 @@
|
||||
From 59ec82af8dff4f78ea9d8d92be333a829da79744 Mon Sep 17 00:00:00 2001
|
||||
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
|
||||
Date: Tue, 11 Jun 2024 15:50:26 +0200
|
||||
Subject: [PATCH 1/2] Fix signature of multiple callback functions for
|
||||
lo_server_add_method()
|
||||
|
||||
---
|
||||
src/engine/osclistenermodule.c | 2 +-
|
||||
src/objects/oscmodule.c | 8 ++++----
|
||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/engine/osclistenermodule.c b/src/engine/osclistenermodule.c
|
||||
index 34c9faa5..79a32873 100644
|
||||
--- a/src/engine/osclistenermodule.c
|
||||
+++ b/src/engine/osclistenermodule.c
|
||||
@@ -46,7 +46,7 @@ OscListener_get(OscListener *self)
|
||||
}
|
||||
|
||||
int process_osc(const char *path, const char *types, lo_arg **argv, int argc,
|
||||
- void *data, void *user_data)
|
||||
+ struct lo_message_ *data, void *user_data)
|
||||
{
|
||||
OscListener *server = (OscListener *)user_data;
|
||||
PyObject *tup;
|
||||
diff --git a/src/objects/oscmodule.c b/src/objects/oscmodule.c
|
||||
index f1805289..04639e2d 100644
|
||||
--- a/src/objects/oscmodule.c
|
||||
+++ b/src/objects/oscmodule.c
|
||||
@@ -43,7 +43,7 @@ typedef struct
|
||||
} OscReceiver;
|
||||
|
||||
int OscReceiver_handler(const char *path, const char *types, lo_arg **argv, int argc,
|
||||
- void *data, void *user_data)
|
||||
+ struct lo_message_ *data, void *user_data)
|
||||
{
|
||||
OscReceiver *self = user_data;
|
||||
PyObject *pathObj = PyUnicode_FromString(path);
|
||||
@@ -1053,7 +1053,7 @@ typedef struct
|
||||
} OscDataReceive;
|
||||
|
||||
int OscDataReceive_handler(const char *path, const char *types, lo_arg **argv, int argc,
|
||||
- void *data, void *user_data)
|
||||
+ struct lo_message_ *data, void *user_data)
|
||||
{
|
||||
OscDataReceive *self = user_data;
|
||||
PyObject *tup, *result = NULL;
|
||||
@@ -1367,7 +1367,7 @@ typedef struct
|
||||
} OscListReceiver;
|
||||
|
||||
int OscListReceiver_handler(const char *path, const char *types, lo_arg **argv, int argc,
|
||||
- void *data, void *user_data)
|
||||
+ struct lo_message_ *data, void *user_data)
|
||||
{
|
||||
OscListReceiver *self = user_data;
|
||||
|
||||
@@ -1945,4 +1945,4 @@ PyTypeObject OscListReceiveType =
|
||||
0, /* tp_init */
|
||||
0, /* tp_alloc */
|
||||
OscListReceive_new, /* tp_new */
|
||||
-};
|
||||
\ No newline at end of file
|
||||
+};
|
||||
|
||||
From e927d865eb007891255ec20df86bb3a05bbbb68e Mon Sep 17 00:00:00 2001
|
||||
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
|
||||
Date: Tue, 11 Jun 2024 15:52:42 +0200
|
||||
Subject: [PATCH 2/2] Fix multiple incorrect declarations of lo_blob and
|
||||
lo_message
|
||||
|
||||
---
|
||||
src/engine/osclistenermodule.c | 2 +-
|
||||
src/objects/oscmodule.c | 6 +++---
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/engine/osclistenermodule.c b/src/engine/osclistenermodule.c
|
||||
index 79a32873..e45ae337 100644
|
||||
--- a/src/engine/osclistenermodule.c
|
||||
+++ b/src/engine/osclistenermodule.c
|
||||
@@ -50,7 +50,7 @@ int process_osc(const char *path, const char *types, lo_arg **argv, int argc,
|
||||
{
|
||||
OscListener *server = (OscListener *)user_data;
|
||||
PyObject *tup;
|
||||
- lo_blob *blob = NULL;
|
||||
+ lo_blob blob = NULL;
|
||||
char *blobdata = NULL;
|
||||
uint32_t blobsize = 0;
|
||||
PyObject *charlist = NULL;
|
||||
diff --git a/src/objects/oscmodule.c b/src/objects/oscmodule.c
|
||||
index 04639e2d..657c2ec6 100644
|
||||
--- a/src/objects/oscmodule.c
|
||||
+++ b/src/objects/oscmodule.c
|
||||
@@ -787,9 +787,9 @@ OscDataSend_compute_next_data_frame(OscDataSend *self)
|
||||
PyObject *datalist = NULL;
|
||||
char *blobdata = NULL;
|
||||
uint8_t midi[4];
|
||||
- lo_blob *blob = NULL;
|
||||
+ lo_blob blob = NULL;
|
||||
const char *path = NULL;
|
||||
- lo_message *msg;
|
||||
+ lo_message msg;
|
||||
|
||||
while (self->something_to_send)
|
||||
{
|
||||
@@ -1057,7 +1057,7 @@ int OscDataReceive_handler(const char *path, const char *types, lo_arg **argv, i
|
||||
{
|
||||
OscDataReceive *self = user_data;
|
||||
PyObject *tup, *result = NULL;
|
||||
- lo_blob *blob = NULL;
|
||||
+ lo_blob blob = NULL;
|
||||
char *blobdata = NULL;
|
||||
uint32_t blobsize = 0;
|
||||
PyObject *charlist = NULL;
|
22
py39.patch
22
py39.patch
@@ -1,22 +0,0 @@
|
||||
From e93a42f612fcfc1c5a8c18e8dcd3219c7bea5925 Mon Sep 17 00:00:00 2001
|
||||
From: Tamas Levai <levait@tmit.bme.hu>
|
||||
Date: Wed, 7 Oct 2020 15:46:32 +0200
|
||||
Subject: [PATCH] Fix compilation for Python 3.9
|
||||
|
||||
---
|
||||
src/objects/bandsplitmodule.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: pyo-1.0.3/src/objects/bandsplitmodule.c
|
||||
===================================================================
|
||||
--- pyo-1.0.3.orig/src/objects/bandsplitmodule.c
|
||||
+++ pyo-1.0.3/src/objects/bandsplitmodule.c
|
||||
@@ -1636,7 +1636,7 @@ MultiBandMain_new(PyTypeObject *type, Py
|
||||
static PyObject *
|
||||
MultiBandMain_setFrequencies(MultiBandMain* self, PyObject *arg) {
|
||||
int i, bounds = self->nbands - 1;
|
||||
- if PyList_Check(arg) {
|
||||
+ if (PyList_Check(arg)) {
|
||||
if (PyList_Size(arg) == bounds) {
|
||||
for (i=0; i<bounds; i++) {
|
||||
MultiBandMain_compute_variables(self, PyFloat_AsDouble(PyList_GetItem(arg, i)), i);
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f0d187a78e3ab9f10275853a22b6a08094aeed4e0c2adee8697734373aa8dd1f
|
||||
size 5222114
|
3
pyo-1.0.5.tar.gz
Normal file
3
pyo-1.0.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e042d947a0b641b400e228f9e21eeca21df8bf4895c6dbd013f87638d7728e31
|
||||
size 5249926
|
@@ -1,3 +1,58 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 11 14:14:54 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 1.0.5
|
||||
* Update Coreaudio support.
|
||||
* Added to MidiNote holdmode, first/last velocity support and sendAllNotesOff method.
|
||||
* UI: Improved handling of system's dark mode.
|
||||
* Fixed PY_SSIZE_T_CLEAN macro must be defined for '#' formats.
|
||||
* Fixed OscReceive.addAddress not polling the address immediately.
|
||||
* Fixed memory leak in trigmodule.
|
||||
* Ensure that there is no leaking audio streams in the server when objects are deleted.
|
||||
* Fix Keyboard widget note off handling in hold mode.
|
||||
* Made SndTable, NewTable and DataTable size attribute mutable.
|
||||
* Improved behavior consistency of PyoTableObject.setSize method.
|
||||
* Fixed bug when making the size of a table bigger at runtime.
|
||||
* Objects writing samples in tables can now write to any PyoTableObject.
|
||||
* Made getRate() and getDur() methods available to all PyoTableObject.
|
||||
* Allow more than 10 controls in PyoObjectControl window.
|
||||
* Fixed linux libasound and libjack symlinks (included in version 1.0.4).
|
||||
- from version 1.0.4
|
||||
* Replaced unsecure vsprintf function with vsnprintf in server logging functions (fixed issue #222).
|
||||
* Removed useless string copy in the Jack backend (fixed issue #221).
|
||||
* TableMorph checks table sizes before interpolating to prevent segmentation fault.
|
||||
* Scale's exp argument now supports float or PyoObject.
|
||||
* Added documentation for IFFTMatrix object.
|
||||
* Added support for item assigment in PyoObjectBase.
|
||||
* Replaced all allocation functions with python's memory interface.
|
||||
* Fixed Select counter type range (now accept a long long value).
|
||||
* Removed unwanted call to Server_process_buffers at start of an embedded audio server.
|
||||
* Fixed segfault in embedded pyo_end_interpreter function.
|
||||
* Fixed FreqShift backward shifting (issue #193).
|
||||
* Fixed wx assertion in Scope color rendering.
|
||||
* Removed deprecated files.
|
||||
* Added Visaul Studio Code integration for Windows, MacOS and Linux.
|
||||
* Fixed array out-of-bound bug in SVF2 object.
|
||||
* Fixed memory allocation in expr's initexpr function (issue #190).
|
||||
* Added rt library to linker on linux (should fix shm_unlink undefined symbol) (issue #129).
|
||||
* On 64-bit architecture, use long instead of int as PyoObjectTable size.
|
||||
* PyoTableObject get(), put() and copyData() methods can read backward with negative indices.
|
||||
* Fixed crash when DataTable or NewTable size != len(init).
|
||||
* Fixed PadSynthTable crash on Windows.
|
||||
* VarPort now updates its increment when the time attribute changes.
|
||||
* Added a level argument to PyoMatrixObject.normalize() method.
|
||||
* Fixed segmentation fault in PyoMatrixObject.read() method.
|
||||
* Added a div method to PyoTableObject.
|
||||
* Added a shape argument to PyoTableObject.fadein() and PyoTableObject.fadeout() methods.
|
||||
* Added a level argument to PyoTableObject.normalize() method.
|
||||
* Fix bug in isPlaying() returning wrong value when set from out().
|
||||
* Prevent normal order to happen in out() function when scrambling channels.
|
||||
* Added PyoObjectBase.getStopDelay() method (mainly for unit testing).
|
||||
- Cherry-pick upstream 277.patch to fix build with GCC 14
|
||||
* https://github.com/belangeo/pyo/pull/277
|
||||
- Drop patches for issues fixed upstream
|
||||
* py39.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 29 06:57:28 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyo
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# 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
|
||||
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-pyo
|
||||
Version: 1.0.3
|
||||
Version: 1.0.5
|
||||
Release: 0
|
||||
Summary: Python digital signal processing module
|
||||
License: LGPL-3.0-or-later
|
||||
@@ -27,7 +27,8 @@ Group: Development/Languages/Python
|
||||
URL: http://ajaxsoundstudio.com/software/pyo/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyo/pyo-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/belangeo/pyo/master/LICENSE
|
||||
Patch0: py39.patch
|
||||
# PATCH-FIX-UPSTREAM - Fix multiple incorrect declarations and signatures of callback functions
|
||||
Patch: https://github.com/belangeo/pyo/pull/277.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
|
Reference in New Issue
Block a user