Beispiel #1
0
 def __init__(self):
     Thread.__init__(self)
     global _audio_player
     if _audio_player is None or not _audio_player.is_alive():
         _audio_player = WavPlayer()
         _audio_player.start()
         _audio_player.set_volume(VOLUMEN_GENERAL)
     self.reset()
     self.setDaemon(True)
Beispiel #2
0
 def _start_audio(self):
     global _audio_player
     if _audio_player is None or not _audio_player.is_alive():
         _audio_player = WavPlayer()
         _audio_player.start()
     self._player = _audio_player
Beispiel #3
0
 def _start_audio(self):
     global _audio_player
     if _audio_player is None or not _audio_player.is_alive():
         _audio_player = WavPlayer()
         _audio_player.start()
     self._player = _audio_player
Beispiel #4
0
 def set_volume(self):
     """Setea el volumen del audio al nivel deseado antes de iniciar."""
     audioplayer = WavPlayer(as_daemon=False)
     audioplayer.set_volume(VOLUMEN_GENERAL)
     audioplayer.close()