Mercurial > boomslang
diff gamelib/sound.py @ 315:7b07ffc37ec0
Suspend background sound for bridge computer detail
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 12:11:42 +0200 |
parents | aebd4fd5b561 |
children | 6df527142e69 |
line wrap: on
line diff
--- a/gamelib/sound.py Sat Aug 28 12:10:20 2010 +0200 +++ b/gamelib/sound.py Sat Aug 28 12:11:42 2010 +0200 @@ -63,5 +63,9 @@ 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 + # Monkey patch albow.music.start_next_music = start_next_music