In some cases it is possible for the sound mixer to not be
initilized before a sound is attempted to be played. (The
play sound function should probably test this every time.)
But here is the trace of one such situation that causes
Archy to crash.
error: mixer system not initialized
Traceback (most recent call last):
File "/home/tom/reducks/pygame_run.py", line 233, in
run_archy
main()
File "/home/tom/reducks/pygame_run.py", line 264, in
main
handle_event(e)
File "/home/tom/reducks/pygame_run.py", line 121, in
handle_event
archyState.autorepeater.onKeyDown(e.key, keyChar)
File "/home/tom/reducks/autorepeat.py", line 101, in
onKeyDown
archyState.keyState.keypress(keycode, keyChar,
'down')
File "/home/tom/reducks/key.py", line 696, in keypress
self.quasimode.keypress(keycode, unicode, downOrUp)
File "/home/tom/reducks/key.py", line 542, in keypress
play_sound(the_globals.failedLeapSound)
File "/home/tom/reducks/key.py", line 114, in play_sound
sound = pygame.mixer.Sound(sound_name)
error: mixer system not initialized