changeset 342:83c9354ff3ef

Fix crash when changing levels.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 04 Jul 2012 23:10:23 +0200
parents 61caded6b4f5
children 94fdb6c782c1
files pytouhou/ui/music.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/ui/music.py
+++ b/pytouhou/ui/music.py
@@ -100,6 +100,10 @@ class MusicPlayer(object):
         self.player = Player()
 
 
+    def pause(self):
+        self.player.pause()
+
+
     def play(self, index):
         bgm = self.bgms[index]
         if self.player.playing: