changeset 590:066b85a7f1cf

Add check on background music as well
author Neil Muller <drnlmuller@gmail.com>
date Sat, 28 Nov 2009 23:26:54 +0000
parents b6f42a09945d
children 441077fab928
files gamelib/main.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/main.py	Sat Nov 28 23:19:56 2009 +0000
+++ b/gamelib/main.py	Sat Nov 28 23:26:54 2009 +0000
@@ -49,8 +49,10 @@
     if sound.SOUND_INITIALIZED:
         try:
             sound.play_sound('silence.ogg')
+            sound.background_music('silence.ogg')
         except pygame.error:
             complaint_dialog('Error trying to play sound. Please run with --no-sound')
+        sound.stop_background_music()
 
 def main():
     """Main script."""