Files
python-pyo/277.patch
Dirk Mueller 3065f6cb57 Accepting request 1180026 from home:glaubitz:branches: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/1180026
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pyo?expand=0&rev=8
2024-06-11 17:34:14 +00:00

113 lines
3.9 KiB
Diff

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;