Mercurial > rinkhals
diff gamelib/sound.py @ 372:90abd39e6c3c 1.0.x
Merge in post-pyweek fixes (r359:371).
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Tue, 13 Oct 2009 20:28:48 +0000 |
parents | 41db9f3ba29e |
children | 03d5cb669298 |
line wrap: on
line diff
--- a/gamelib/sound.py Tue Oct 13 20:12:06 2009 +0000 +++ b/gamelib/sound.py Tue Oct 13 20:28:48 2009 +0000 @@ -35,6 +35,8 @@ def stop_background_music(): """stops any playing background music""" global CURRENT_MUSIC_FILE + if not SOUND_INITIALIZED: + return CURRENT_MUSIC_FILE = None # TODO: fadeout in a background thread pygame.mixer.music.stop()