comparison pytouhou/ui/music.py @ 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
comparison
equal deleted inserted replaced
341:61caded6b4f5 342:83c9354ff3ef
98 self.bgms.append(source) 98 self.bgms.append(source)
99 99
100 self.player = Player() 100 self.player = Player()
101 101
102 102
103 def pause(self):
104 self.player.pause()
105
106
103 def play(self, index): 107 def play(self, index):
104 bgm = self.bgms[index] 108 bgm = self.bgms[index]
105 if self.player.playing: 109 if self.player.playing:
106 self.player.next() 110 self.player.next()
107 if bgm: 111 if bgm: