Skip to content

Commit

Permalink
Fix CREATESOUNDEXINFO.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrylu committed Mar 26, 2019
1 parent f215584 commit ac227da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyfmodex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Avoid recursive import hell
from . import dsp, dsp_connection, geometry, channel, channel_group, reverb, sound, sound_group, system
from .utils import FmodError
__version__ = "0.5.2"
__version__ = "0.5.3"

c = {}
c["DSP"] = dsp.DSP
Expand Down
2 changes: 1 addition & 1 deletion pyfmodex/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CODEC_DESCRIPTION(Structure):

COMPLEX._fields_ = [("real", c_float), ("imag", c_float)]

CREATESOUNDEXINFO._fields_ = [("cbsize", c_int), ("length", c_uint), ("fileoffset", c_uint), ("numchannels", c_int), ("defaultfrequency", c_int), ("format", c_int), ("decodebuffersize", c_uint), ("initialsubsound", c_int), ("numsubsounds", c_int), ("inclusionlist", POINTER(c_int)), ("inclusionlistnum", c_int), ("pcmreadcallback", SOUND_PCMREADCALLBACK), ("pcmsetposcallback", SOUND_PCMSETPOSCALLBACK), ("nonblockcallback", SOUND_NONBLOCKCALLBACK), ("dlsname", c_char_p), ("encryptionkey", c_char_p), ("maxpolyphony", c_int), ("userdata", c_void_p), ("suggestedsoundtype", c_int), ("useropen", FILE_OPEN_CALLBACK), ("userclose", FILE_CLOSE_CALLBACK), ("userread", FILE_READ_CALLBACK), ("userseek", FILE_SEEK_CALLBACK), ("userasyncread", FILE_ASYNCREAD_CALLBACK), ("userasynccancel", FILE_ASYNCCANCEL_CALLBACK), ("fileuserdata", c_void_p), ("filebuffersize", c_int), ("channelorder", c_int), ("channelmask", c_int), ("initialsoundgroup", c_void_p), ("initialseekposition", c_uint), ("initialseekpostype", c_int), ("ignoresetfilesystem", c_int), ("audioqueuepolicy", c_uint), ("minmidigranularity", c_uint), ("nonblockthreadid", c_int), ("fsbguid", GUID)]
CREATESOUNDEXINFO._fields_ = [("cbsize", c_int), ("length", c_uint), ("fileoffset", c_uint), ("numchannels", c_int), ("defaultfrequency", c_int), ("format", c_int), ("decodebuffersize", c_uint), ("initialsubsound", c_int), ("numsubsounds", c_int), ("inclusionlist", POINTER(c_int)), ("inclusionlistnum", c_int), ("pcmreadcallback", SOUND_PCMREADCALLBACK), ("pcmsetposcallback", SOUND_PCMSETPOSCALLBACK), ("nonblockcallback", SOUND_NONBLOCKCALLBACK), ("dlsname", c_char_p), ("encryptionkey", c_char_p), ("maxpolyphony", c_int), ("userdata", c_void_p), ("suggestedsoundtype", c_int), ("useropen", FILE_OPEN_CALLBACK), ("userclose", FILE_CLOSE_CALLBACK), ("userread", FILE_READ_CALLBACK), ("userseek", FILE_SEEK_CALLBACK), ("userasyncread", FILE_ASYNCREAD_CALLBACK), ("userasynccancel", FILE_ASYNCCANCEL_CALLBACK), ("fileuserdata", c_void_p), ("filebuffersize", c_int), ("channelorder", c_int), ("initialsoundgroup", c_void_p), ("initialseekposition", c_uint), ("initialseekpostype", c_int), ("ignoresetfilesystem", c_int), ("audioqueuepolicy", c_uint), ("minmidigranularity", c_uint), ("nonblockthreadid", c_int), ("fsbguid", GUID)]

def exinfo_init(self, *args, **kwargs):
Structure.__init__(self, *args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
clfs.append("Operating System :: POSIX :: Linux")
clfs.append("Programming Language :: Python :: 3")

setup(name="pyfmodex", version="0.5.2", author="Lukas Tyrychtr", author_email="lukastyrychtr@gmail.com", url="https://www.github.com/tyrylu/pyfmodex", packages=["pyfmodex"], long_description=open("readme.md", "r").read(), description="Python bindings to the Fmod Ex library.", license="MIT", classifiers=clfs, install_requires=["py-flags"])
setup(name="pyfmodex", version="0.5.3", author="Lukas Tyrychtr", author_email="lukastyrychtr@gmail.com", url="https://www.github.com/tyrylu/pyfmodex", packages=["pyfmodex"], long_description=open("readme.md", "r").read(), description="Python bindings to the Fmod Ex library.", license="MIT", classifiers=clfs, install_requires=["py-flags"])

0 comments on commit ac227da

Please sign in to comment.