From 63f4a8310eb79705442c5b3c115baf3e994ae8ca Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 23 Jan 2019 08:54:06 -0600 Subject: [PATCH] Sound player module take volume config properly --- src/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound.py b/src/sound.py index 36b0b8f..752ba33 100644 --- a/src/sound.py +++ b/src/sound.py @@ -81,6 +81,6 @@ class soundSystem(object): if self.soundpack_OK == False: return if self.config["session_mute"] == True: return sound_object = sound_lib.stream.FileStream(file="%s/%s" % (self.path, sound)) - sound_object.volume = float(self.config["volume"]) + sound_object.volume = self.config["volume"]/100 self.files.append(sound_object) sound_object.play()