Sound player module take volume config properly

This commit is contained in:
Manuel Cortez 2019-01-23 08:54:06 -06:00
parent 53176a9a26
commit 63f4a8310e

View File

@ -81,6 +81,6 @@ class soundSystem(object):
if self.soundpack_OK == False: return if self.soundpack_OK == False: return
if self.config["session_mute"] == True: return if self.config["session_mute"] == True: return
sound_object = sound_lib.stream.FileStream(file="%s/%s" % (self.path, sound)) 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) self.files.append(sound_object)
sound_object.play() sound_object.play()