0
0

I see Python wrappers for windows. Are there Python wrappers for Linux?

All other parts of my program are both win32 and linux compatible and written in python. Unfortunately, the modules I’ve used for sound just aren’t as awesome as FMOD. Any pointers?

  • You must to post comments
0
0

I am working on getting pySonic to build under linux. Just having some problems linking at this point.

  • You must to post comments
0
0

Ok, here are the changes. Replace setup.py with the folllowing for linux:
”pySonic: FMOD for Python

pySonic is a Python wrapper around the high performance, cross platform FMOD sound library. You get all the benefits of the FMOD library, but in a Pythonic, object oriented package.
”’

from distutils.core import setup, Extension
from Pyrex.Distutils import build_ext
import os

if os.name == ‘nt’:
fmod_home = ‘fmodapi373win/api’
libs = [‘fmodvc’]
include_dirs = [fmod_home+’/inc’]
library_dirs = [fmod_home+’/lib’]
extra_objects = []
elif os.name == ‘posix’:
# also had to copy libfmod-3.74.so to /usr/local/lib, add /usr/local/lib to
# /etc/ld.so.conf and run ldconfig before it would work
fmod_home = ‘fmodapi374linux/api’
libs= []
include_dirs = [fmod_home+’/inc’]
library_dirs= [fmod_home]
extra_objects = [‘libfmod-3.74.so’]
else:
raise RuntimeError, ‘you need to modify setup.py to work with %s’ % os.name

classifiers = “””\
Development Status :: 3 – Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Topic :: Multimedia :: Sound/Audio
Topic :: Software Development :: Libraries :: Python Modules
“””
doclines = doc.split(‘\n’)

ext = Extension(‘pySonic’, [‘pySonic.pyx’],
libraries = libs,
extra_compile_args=[‘-w’],
include_dirs = include_dirs,
library_dirs = library_dirs,
extra_objects = extra_objects
)

setup(name=’pySonic’,
version=’0.5′,
author=’Peter Parente’,
author_email=’parente@cs.unc.edu‘,
url=’http://pysonic.sourceforge.net’,
download_url=’http://pysonic.sourceforge.net’,
license=’http://www.opensource.org/licenses/mit-license.php’,
description = doclines[0],
classifiers = filter(None, classifiers.split(‘\n’)),
long_description = ‘ ‘.join(doclines[2:]),
ext_modules = [ext],
cmdclass = {‘build_ext’: build_ext}
)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.