Sound player module take volume config properly
This commit is contained in:
parent
53176a9a26
commit
63f4a8310e
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user