comparison gamelib/sound.py @ 188:aebd4fd5b561

no_sound error handler should also disable music
author Neil Muller <neil@dip.sun.ac.za>
date Wed, 25 Aug 2010 17:04:06 +0200
parents d2f94f42edf3
children 7b07ffc37ec0
comparison
equal deleted inserted replaced
187:fbfd8e748ac0 188:aebd4fd5b561
39 def no_sound(e): 39 def no_sound(e):
40 global sound_cache 40 global sound_cache
41 print "get_sound: %s" % e 41 print "get_sound: %s" % e
42 print "get_sound: Sound not available, continuing without it" 42 print "get_sound: Sound not available, continuing without it"
43 sound_cache = None 43 sound_cache = None
44 albow.music.music_enabled = False
44 45
45 def disable_sound(): 46 def disable_sound():
46 global sound_cache 47 global sound_cache
47 sound_cache = None 48 sound_cache = None
48 albow.music.music_enabled = False 49 albow.music.music_enabled = False