Skip to main content

Python bindings to the Fmod Ex library.

Project description


This is pyfmodex a fmod ex binding using ctypes.


For installation, first make sure that you have the fmod stuio library for you platform somewhere on your path, so python will be able to find it. For download visit For some reason, the API download requires a free account. Then, install it via pip or easy_install, or, you can always use the way. Don't forget superuser rights, if they're needed.


To verify if everything works, open python interactive interpreter and try importing pyfmodex:

import pyfmodex

If there is no error, good. It worked. Playing a sound is a little bit more complicated than the import, but nothing horrible:

import pyfmodex

system = pyfmodex.System()
sound = system.create_sound("somefile.mp3")
channel =

while channel.is_playing:

Of course, somefile.mp3 must be replaced with somethink that actually exists. Here, i used the default parameters and not used features like 3d positioning. For more info, you can use the dir function and of course the source. Note that the while loop is necessary at least in this simple example to keep the main thread alive long enough.

Python 3 compatibility

Pyfmodex works with python 3 (tested on version 3.5, older versions than python 3.4 will not work, because the library depends on the enum module. If you pass as a file name str on py3 or unicode on py2, make sure that they're encodable by the encoding retuned by sys.getfilesystemencoding. Channel Group names and other identifiers are supposed to be ascii only.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfmodex-0.7.0.tar.gz (38.1 kB view hashes)

Uploaded source

Built Distribution

pyfmodex-0.7.0-py3-none-any.whl (47.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page