[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] varying sound playback rate



Greg Ewing wrote:

Dave LeCompte (really) wrote:

- alternately, you could ditch PyGame's mixer altogether and use an
outside sound library.


I've done something like this recently using OpenAL via
PyOpenAL, and it works well.

The only drawback might be that it seems PyOpenAL is
no longer maintained, and I had to make some minor
changes to get it to work with the version of OpenAL
that comes with MacOSX 10.4.

OpenAL can also be accessed directly using ctypes. For example, here's a simple generated wrapper:


http://pyglet.googlecode.com/svn/trunk/pyglet/media/lib_openal.py
http://pyglet.googlecode.com/svn/trunk/pyglet/media/lib_alc.py

Alex.