fix: update pymumble #95
This commit is contained in:
1 parent
ae360b96c6
commit
69c3fa22e8
2 files changed
+1
-12
No files matched your search
@@ -621,7 +621,6 @@ class MumbleBot:
|
|||||||
|
|
||||||
def ducking_sound_received(self, user, sound):
|
def ducking_sound_received(self, user, sound):
|
||||||
rms = audioop.rms(sound.pcm, 2)
|
rms = audioop.rms(sound.pcm, 2)
|
||||||
self._clear_pymumble_soundqueue()
|
|
||||||
self._max_rms = max(rms, self._max_rms)
|
self._max_rms = max(rms, self._max_rms)
|
||||||
if self._display_rms:
|
if self._display_rms:
|
||||||
if rms < self.ducking_threshold:
|
if rms < self.ducking_threshold:
|
||||||
@@ -715,16 +714,6 @@ class MumbleBot:
|
|||||||
self.last_volume_cycle_time = time.time()
|
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):
|
def start_web_interface(addr, port):
|
||||||
global formatter
|
global formatter
|
||||||
import interface
|
import interface
|
||||||
|
|||||||
+1
-1
Submodule pymumble updated: 3cfdaa0cf1...c95e53633f.
Reference in new issue
Block a user