From 7c2fd00884a47eda7309cefdfd0d99f5f11137d7 Mon Sep 17 00:00:00 2001 From: Azlux Date: Mon, 1 Jun 2020 17:24:07 +0200 Subject: [PATCH] change volume mgmt better volume management for your hears --- mumbleBot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mumbleBot.py b/mumbleBot.py index 84eeb11..5ec3cfb 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -473,8 +473,8 @@ class MumbleBot: if raw_music: # Adjust the volume and send it to mumble self.volume_cycle() - self.mumble.sound_output.add_sound( - audioop.mul(raw_music, 2, self.volume)) + # 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))) else: time.sleep(0.1) else: