def shutdown(self): # This will be called by the pykManager to shut down the thing # immediately. if self.Movie: self.Movie.stop() # Must remove the object before using pygame.mixer module again self.Movie = None pykPlayer.shutdown(self)
def shutdown(self): # This will be called by the pykManager to shut down the thing # immediately. if self.soundFileData: if manager.audioProps: pygame.mixer.music.stop() # Make sure our surfaces are deallocated before we call up to # CloseDisplay(), otherwise bad things can happen. self.workingSurface = None self.workingTile = None self.packetReader = None pykPlayer.shutdown(self)
def shutdown(self): # This will be called by the pykManager to shut down the thing # immediately. #pygame.mixer.music.stop() #pygame.mixer.music = None pygame.mixer.quit() # Make sure our surfaces are deallocated before we call up to # CloseDisplay(), otherwise bad things can happen. self.workingSurface = None self.workingTile = None self.packetReader = None pykPlayer.shutdown(self) pygame.display.quit() if self.tempdir: shutil.rmtree(self.tempdir) self.tempdir = None
def shutdown(self): # This will be called by the pykManager to shut down the thing # immediately. pygame.mixer.music.stop() pykPlayer.shutdown(self)