Skip to content

Commit

Permalink
In DSP_PARAMETER_FFT structure, where spectrum parameter has a wrong …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
AhmedAhmedEG committed Jan 18, 2024
1 parent d87d93f commit d1cd57d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyfmodex/structures.py
@@ -1,5 +1,4 @@
"""Structures."""

# pylint: disable=too-few-public-methods
# These are mostly data containers, really.

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit d1cd57d

Please sign in to comment.