def load(self, music): if not isinstance(music, Music) and music != None: core.logerr("not isinstance(music, Music) and != None", music) return self.stop() self.music = music
def load(self, chunk): if not isinstance(chunk, Chunk) and chunk != None: core.logerr("not isinstance(chunk, Chunk) and != None", chunk) return self.stop() self.chunk = chunk