pyFMOD problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tian

    #1

    pyFMOD problem

    I am trying to use pyfmod in python to manipulate sound.
    i have installed pyfmod, ctype, numarray (if they are necessary), i
    also copied fmod.dll to python/DLLs as well as windows/system32, but
    when i tried

    import pyFMOD

    I got:

    Traceback (most recent call last):
    File "<pyshell#0 >", line 1, in -toplevel-
    import pyFMOD
    File "C:\Python24\Li b\site-packages\pyFMOD .py", line 177, in
    -toplevel-
    _FSOUND_Sample_ Load = getattr(fmod, "_FSOUND_Sample _Load@16")
    File "C:\Python24\Li b\site-packages\ctypes \__init__.py", line 323,
    in __getattr__
    func = self._StdcallFu ncPtr(name, self)
    AttributeError: function '_FSOUND_Sample _Load@16' not found
    -------------------------------------
    How can I deal with this?
    Thanks!
  • Thomas Heller

    #2
    Re: pyFMOD problem

    wangtianthu@gma il.com (Tian) writes:
    [color=blue]
    > I am trying to use pyfmod in python to manipulate sound.
    > i have installed pyfmod, ctype, numarray (if they are necessary), i
    > also copied fmod.dll to python/DLLs as well as windows/system32, but[/color]

    First, you should copy fmod.dll to a directory somewhere where
    LoadLibrary can find it. That includes directories on PATH, plus the
    directory where the executable is. python/DLLs does probably not work.
    [color=blue]
    > when i tried
    >
    > import pyFMOD
    >
    > I got:
    >
    > Traceback (most recent call last):
    > File "<pyshell#0 >", line 1, in -toplevel-
    > import pyFMOD
    > File "C:\Python24\Li b\site-packages\pyFMOD .py", line 177, in
    > -toplevel-
    > _FSOUND_Sample_ Load = getattr(fmod, "_FSOUND_Sample _Load@16")
    > File "C:\Python24\Li b\site-packages\ctypes \__init__.py", line 323,
    > in __getattr__
    > func = self._StdcallFu ncPtr(name, self)
    > AttributeError: function '_FSOUND_Sample _Load@16' not found
    > -------------------------------------
    > How can I deal with this?
    > Thanks![/color]

    The fmod.dll that I just downloaded has a function named
    '_FSOUND_Sample _Load@20', which indicates an api change (the number of
    the '@' sign indicates how many bytes are needed as parameters).

    Probably pyFMOD needs an older version of fmod.dll, or pyFMOD should be
    updated?

    Thomas

    Comment

    Working...