using identifiable power

using math.e = 2.718281…  is quite useless. Let use 2.7
This commit is contained in:
azlux
2020-06-02 01:21:47 +02:00
committed by Terry Geng
parent 7c2fd00884
commit 32e32774eb

View File

@ -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: