# HG changeset patch # User Jeremy Thurgood # Date 1328954541 -7200 # Node ID 6df527142e6920d1e57c3bad3cee1a9d3978d36d # Parent 42742a62f9c30a81cde26f53aeb19b5ff42d8d55 PEP-8 sound.py diff -r 42742a62f9c3 -r 6df527142e69 gamelib/sound.py --- a/gamelib/sound.py Sat Feb 11 12:00:15 2012 +0200 +++ b/gamelib/sound.py Sat Feb 11 12:02:21 2012 +0200 @@ -13,6 +13,7 @@ sound_cache = {} + def get_sound(*names): if sound_cache is None: return dummy_sound @@ -43,11 +44,13 @@ sound_cache = None albow.music.music_enabled = False + def disable_sound(): global sound_cache sound_cache = None albow.music.music_enabled = False + def missing_sound(e, name): print "albow.resource.get_sound: %s: %s" % (name, e) @@ -63,6 +66,7 @@ albow.music.next_change_delay = albow.music.change_delay albow.music.current_music = next_music + def get_current_playlist(): if albow.music.music_enabled and albow.music.current_playlist: return albow.music.current_playlist