Update of /cvsroot/freevo/freevo/src/audio In directory sc8-pr-cvs1:/tmp/cvs-serv12227
Modified Files: player.py Log Message: keep track of current player Index: player.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/audio/player.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** player.py 6 Dec 2003 13:43:34 -0000 1.13 --- player.py 9 Dec 2003 20:31:58 -0000 1.14 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.14 2003/12/09 20:31:58 dischi + # keep track of current player + # # Revision 1.13 2003/12/06 13:43:34 dischi # expand the <audio> parsing in fxd files *************** *** 55,58 **** --- 58,66 ---- skin.register('player', ('screen', 'title', 'view', 'info', 'plugin')) + _player_ = None + + def get(): + global _player_ + return _player_ class PlayerGUI(GUIObject): *************** *** 72,76 **** --- 80,89 ---- def play(self, player=None): + global _player_ + if _player_ and _player_.player and _player_.player.is_playing(): + _player_.stop() + _player_ = self + if self.player and self.player.is_playing(): self.stop() *************** *** 110,113 **** --- 123,127 ---- self.refresh() + def try_next_player(self): self.stop() *************** *** 127,132 **** --- 141,150 ---- _debug_('no more players found') return 0 + def stop(self): + global _player_ + _player_ = None + self.player.stop() self.running = False ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog