From 32e32774eb47b721306ca759d96b1e69761a6e3c Mon Sep 17 00:00:00 2001 From: azlux Date: Tue, 2 Jun 2020 01:21:47 +0200 Subject: [PATCH] using identifiable power MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit using math.e = 2.718281… is quite useless. Let use 2.7 --- mumbleBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 5ec3cfb..fea601b 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -474,7 +474,7 @@ class MumbleBot: # Adjust the volume and send it to mumble self.volume_cycle() # https://stackoverflow.com/questions/1165026/what-algorithms-could-i-use-for-audio-volume-level - self.mumble.sound_output.add_sound(audioop.mul(raw_music, 2, math.pow(self.volume, math.e))) + self.mumble.sound_output.add_sound(audioop.mul(raw_music, 2, math.pow(self.volume, 2.7))) else: time.sleep(0.1) else: