views:

65

answers:

1

I've tried the sound module in Pygame, and I haven't been satisfied with the results. I need to play music and sounds in my game. What can I use that works with OSX, Linux and Windows, and plays sound well? Unfortunately, pyMedia doesn't compile on OSX.

+3  A: 

pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux. Some of the features of pyglet are:

No external dependencies or installation requirements. For most application and game requirements, pyglet needs nothing else besides Python, simplifying distribution and installation.

Take advantage of multiple windows and multi-monitor desktops. pyglet allows you to use as many windows as you need, and is fully aware of multi-monitor setups for use with fullscreen games.

Load images, sound, music and video in almost any format. pyglet can optionally use AVbin to play back audio formats such as MP3, OGG/Vorbis and WMA, and video formats such as DivX, MPEG-2, H.264, WMV and Xvid.

gnibbler
Splendid!This is brilliant. Thankyou. I have tested a sound and it plays brilliantly. I must now try to rid the program from pygame and GLUT and place this library into my program. I did see a mention about this library before but I never found anything to suggest it was suitable for my game.
Matthew Mitchell