def sound_stop(stop_voice_too=True):
    psounds.stop()
    if stop_voice_too:
        pygame.mixer.stop()
        tts.stop()
    else: # stop every channel except channel 0 (voice channel)
        for _id in range(1, pygame.mixer.get_num_channels()):
            pygame.mixer.Channel(_id).stop()
def sound_stop(stop_voice_too=True):
    psounds.stop()
    if stop_voice_too:
        pygame.mixer.stop()
        tts.stop()
    else:  # stop every channel except channel 0 (voice channel)
        for _id in range(1, pygame.mixer.get_num_channels()):
            pygame.mixer.Channel(_id).stop()
 def stop(self):
     self.c.stop() # interrompre
     tts.stop()
     self._queue = []
Beispiel #4
0
 def pushedStopButton(event):
     tts.stop()
 def stop(self):
     self.c.stop()  # interrupt
     tts.stop()
     self._queue = []
 def stop(self):
     self.c.stop() # interrupt
     tts.stop()
     self._queue = []