def reload(self): """ Causes this channel to be stopped in a way that looped audio will be reloaded and restarted. """ with lock: renpysound.dequeue(self.number, True) renpysound.stop(self.number)
def dequeue(self, even_tight=False): """ Clears the queued music. If the first item in the queue has not been started, then it is left in the queue unless all is given. """ self.queue = self.queue[:self.keep_queue] self.loop = [ ] if not pcm_ok: return if self.keep_queue == 0: renpysound.dequeue(self.number, even_tight)