def fadeout(self, secs): """ Causes the playing music to be faded out for the given number of seconds. Also clears any queued music. """ self.keep_queue = 0 self.dequeue() if not pcm_ok: return if secs == 0: pss.stop(self.number) else: pss.fadeout(self.number, int(secs * 1000))