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

[pygame] sound crackling and fmod



Hi,

I'm totally new to Python and Pygame, and have started by testing out the demos on the Pygame website. I'm using Ubuntu Linux. When I ran the "Shadow of the Beast" demo from the website, the animation was great but the sound (an Ogg file) was crackly on my speakers. I decided to try out other demos from the same website, and they too crackled. Seemed like a problem with my speakers, but when I played the same Ogg file with ubuntu's Totem Movie Player, the music played perfectly. I'm wondering why. If anyone out there is using ubuntu Linux and has any ideas, please help.

Secondly, I've already used the excellent sound package, Fmod, in a c++ game I made, and have tested Fmod with java successfully, but I don't know how to use it with Pygame. I thought Fmod would be the best choice (rather than the Pygame mixer that is called in the demos, which seems to cause crackling). I have downloaded the latest Fmod for Linux, and have downloaded pySonic too. Unfortunately, the pySonic binary download is for Windows only. I did some web searching, and someone said that he's heard pySonic will work under Linux, but that you have to use PyRex, and follow special build instructions. The final result should be a shared object file for linux. I downloaded the required source code from sourceforge, and tried to follow the build instructions, but my call to gcc failed and I so I couldn't complete the build properly. This is frustrating. Surely someone has pySonic in a shared object form for linux?

I plan to use Python and Pygame, and also to have the power of Fmod. Can someone please help out here with regard to the two problems:
1) why am I getting the crackling when running the demos?, and
2) How to I get a copy of Fmod in shared object form (for linux)?

Thanks in advance.

Cheers,

Andrew.

Send instant messages to your online friends http://au.messenger.yahoo.com