# HG changeset patch # User Thibaut Girka # Date 1341436223 -7200 # Node ID 83c9354ff3ef183c5792ac08797caa09fe862b09 # Parent 61caded6b4f5434491ee19b1349f88ed504a7c06 Fix crash when changing levels. diff --git a/pytouhou/ui/music.py b/pytouhou/ui/music.py --- 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: