Python bindings for fmod ex sound library.
Python
Latest commit af823ee Jul 15, 2016 @tyrylu Better handle str/unicode strings, respectively. Also release 0.4 as …
…some may have depended on the old behavior.
Permalink
Failed to load latest commit information.
pyfmodex
scripts
.gitignore
license
manifest.in
readme.md
setup.py

readme.md

Pyfmodex

This is pyfmodex a fmod ex binding using ctypes.

Installation

For installation, first make sure that you have the fmod ex library for you platform somewhere on your path, so python will be able to find it. For download visit http://fmod.org/fmod-downloads.html. Ignore everything except the fmod ex api, there are numerous things which will try to distract you. Then, install it via pip or easy_install, or, you can always use the setup.py way. Don't forget superuser rights, if they're needed. Usage

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()
system.init()
sound = system.create_sound("somefile.mp3")
sound.play()

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 dir function and of course the source. Python 3 compatibility

Pyfmodex works with python 3 (tested in version 3.3, older may work). 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.