]> git.0d.be Git - botaradio.git/commitdiff
fix: update pymumble #95
authorTerry Geng <gengyanda@gmail.com>
Tue, 10 Mar 2020 15:45:53 +0000 (23:45 +0800)
committerTerry Geng <gengyanda@gmail.com>
Tue, 10 Mar 2020 15:45:53 +0000 (23:45 +0800)
mumbleBot.py
pymumble

index 631648a92cc37944b721f8a8f75b6411b2a20f5f..06d93210ac19b1c82952965941396b34cf17ae62 100644 (file)
@@ -621,7 +621,6 @@ class MumbleBot:
 
     def ducking_sound_received(self, user, sound):
         rms = audioop.rms(sound.pcm, 2)
-        self._clear_pymumble_soundqueue()
         self._max_rms = max(rms, self._max_rms)
         if self._display_rms:
             if rms < self.ducking_threshold:
@@ -715,16 +714,6 @@ class MumbleBot:
         self.last_volume_cycle_time = time.time()
 
 
-    # TODO: this is a temporary workaround for issue #44 of pymumble.
-    def _clear_pymumble_soundqueue(self):
-        for id, user in self.mumble.users.items():
-            user.sound.lock.acquire()
-            user.sound.queue.clear()
-            user.sound.lock.release()
-        self.log.debug("bot: pymumble soundqueue cleared.")
-
-
-
 def start_web_interface(addr, port):
     global formatter
     import interface
index 3cfdaa0cf1a54290283cee656fdded6bb492c909..c95e53633f41f662ef03c4fdaf295fa819c26675 160000 (submodule)
--- a/pymumble
+++ b/pymumble
@@ -1 +1 @@
-Subproject commit 3cfdaa0cf1a54290283cee656fdded6bb492c909
+Subproject commit c95e53633f41f662ef03c4fdaf295fa819c26675