change volume mgmt
better volume management for your hears
This commit is contained in:
parent
37082a82f3
commit
7c2fd00884
@ -473,8 +473,8 @@ class MumbleBot:
|
|||||||
if raw_music:
|
if raw_music:
|
||||||
# Adjust the volume and send it to mumble
|
# Adjust the volume and send it to mumble
|
||||||
self.volume_cycle()
|
self.volume_cycle()
|
||||||
self.mumble.sound_output.add_sound(
|
# https://stackoverflow.com/questions/1165026/what-algorithms-could-i-use-for-audio-volume-level
|
||||||
audioop.mul(raw_music, 2, self.volume))
|
self.mumble.sound_output.add_sound(audioop.mul(raw_music, 2, math.pow(self.volume, math.e)))
|
||||||
else:
|
else:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user