Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
 def stop(self):
     self.c.stop() # interrompre
     tts.stop()
     self._queue = []
Exemplo n.º 4
0
 def pushedStopButton(event):
     tts.stop()
Exemplo n.º 5
0
 def stop(self):
     self.c.stop()  # interrupt
     tts.stop()
     self._queue = []
Exemplo n.º 6
0
 def stop(self):
     self.c.stop() # interrupt
     tts.stop()
     self._queue = []