From d1cd57d910f7eb2139b6097bc52769f964465b09 Mon Sep 17 00:00:00 2001 From: AhmedAhmedEG Date: Thu, 18 Jan 2024 10:02:38 +0200 Subject: [PATCH] In DSP_PARAMETER_FFT structure, where spectrum parameter has a wrong type. (#53) * Update structures.py Fixed a bug in DSP_PARAMETER_FFT structure where spectrum parameter was miss-classified as a list of floats, while it's a list of float pointers. * Update structures.py * Update structures.py --- pyfmodex/structures.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyfmodex/structures.py b/pyfmodex/structures.py index 503596c..3175473 100644 --- a/pyfmodex/structures.py +++ b/pyfmodex/structures.py @@ -1,5 +1,4 @@ """Structures.""" - # pylint: disable=too-few-public-methods # These are mostly data containers, really. @@ -509,7 +508,7 @@ class DSP_PARAMETER_FFT(Structure): :ivar list(float) spectrum: Per channel spectrum arrays. """ - _fields_ = [("length", c_int), ("numchannels", c_int), ("spectrum", c_float * 32)] + _fields_ = [("length", c_int), ("numchannels", c_int), ("spectrum", POINTER(c_float) * 32)] class DSP_PARAMETER_OVERALLGAIN(Structure):