def get_sound(self): is_busy = sound.busy(self.id) if not is_busy: return serial = sound.playing_name(self.id) if not serial: return return sounds.get(serial, None)
def get_playing(self): if not pcm_ok: return None rv = pss.playing_name(self.number) if rv is None and self.queue: rv = self.queue[0].filename if rv is None and self.loop: rv = self.loop[0] return rv