using identifiable power
using math.e = 2.718281… is quite useless. Let use 2.7
This commit is contained in:
parent
7c2fd00884
commit
32e32774eb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user