Friday, October 21, 2011

pygame audio problems

Last night, my student was having problems loading differing audio formats into pygame.mixer.Sound("filename").  We tried mp3, ogg, and wav formats.  After researching this on the web, I found out that other people have this same problem.  I downloaded audacity and saved the audio files as .wav files, even the .wav files that I got from the Internet.  We got the sound to work on Mac OS X and Linux Ubuntu.

The pygame.mixer.music.load() and pygame.mixer.music.play modules seem to be more robust.  We've got Linkin Park playing as the background music.  I recently noticed that the song has explicity lyrics in it.  I need to get my student to change the music. 

No comments:

Post a Comment