Mercurial > pyntnclick
changeset 534:6df527142e69
PEP-8 sound.py
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 11 Feb 2012 12:02:21 +0200 |
parents | 42742a62f9c3 |
children | 2d87cb7eee50 |
files | gamelib/sound.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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