[Magicor-devel] r241 - fix pygame 1.8.1 mixer.music crash commited to trunk
Status: Beta
Brought to you by:
petgeb
From: Claudio <cla...@ya...> - 2008-08-05 17:46:22
|
r241 trunk - fix pygame 1.8.1 mixer.music crash Exercised in windows both with pygame 1.7.1 and 1.8.1, no crashes. Linux should be unaffected, but better to test, just in case. Specifically music changes must be exerciced, thats the only change. Peter, after tests in Linux maybe you can update the source package ? from the commit text: workaround for pygame 1.8.1 mixer.music crash In the old code to start - change the music, a call to pygame.mixer.music.play() was issued; That turns to crash ( at least in windows ) with pygame 1.8.1 It was confirmed as a pygame bug, see thread http://news.gmane.org/find-root.php?message_id=%3cf5f20e3a0807301333x6b51a516t17d3fb9344aed909%40mail.gmail.com%3e A workaround is to stop the music, wait some time, start the music. As implemented in magicor, the workaround simply requires to call self.resources.playMusicDelayed() in each magicor state.run() method The call to start - change a song from a magicor state has not changed: self.resources.startMusic() -- claxo ____________________________________________________________________________________ ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch |