Hey guys, thanks for getting back to me. I have both 'lame' and 'lame-libs' installed on Fedora 18, and can play mp3 files in my browser and media players.
The error printed is:
Traceback (most recent call last):
File "src/main.py", line 62, in <module>
main()
File "src/main.py", line 40, in main
game.event(ev)
File "/home/arthur/Downloads/LD27_Entries/10SecondSlaughter/src/gamestates.py", line 296, in event
self._state.event(ev)
File "/home/arthur/Downloads/LD27_Entries/10SecondSlaughter/src/gamestates.py", line 54, in event
self.game.set_state(PlayState(self.game))
File "/home/arthur/Downloads/LD27_Entries/10SecondSlaughter/src/gamestates.py", line 174, in set_state
self._state.leave()
File "/home/arthur/Downloads/LD27_Entries/10SecondSlaughter/src/gamestates.py", line 49, in leave
sound.play_main_music()
File "/home/arthur/Downloads/LD27_Entries/10SecondSlaughter/src/sound.py", line 20, in play_main_music
mixer.music.load(os.path.join('assets','music.mp3'))
pygame.error: Unrecognized music format
To fix it, I applied the following patch to src/sound.py:
def play_main_music():
+ print "Music disabled"
- mixer.music.load(os.path.join('assets','music.mp3'))
- mixer.music.play()
...
def play_gameover_music():
+ print "Music disabled"
- mixer.music.load(os.path.join('assets','gameover.mp3'))
- mixer.music.play()
I am probably using an old version of pygame-music, or am missing a python-lame extension or something...