Fix Jukeboxes for estates parties and no conflict with TV

loop needs int not float and time is float and loop was set to
getMusicRepeatTimes(length) this is time not loop
This commit is contained in:
jp187187 2015-07-16 08:12:20 -07:00
parent 88dca5c838
commit 359e52ed11

View file

@ -170,8 +170,8 @@ class DistributedPartyJukeboxActivityBase(DistributedPartyActivity):
if self.music:
if self.__checkPartyValidity() and hasattr(base.cr.playGame.getPlace().loader, 'music') and base.cr.playGame.getPlace().loader.music:
base.cr.playGame.getPlace().loader.music.stop()
self.music.setTime(0.0)
self.music.setLoopCount(getMusicRepeatTimes(length))
self.music.setTime(getMusicRepeatTimes(length))
self.music.setLoopCount(0)
self.music.play()
self.currentSongData = (phase, filename)