From 93d1de941cfd2645cc85d7bb0cda72f43d445ff4 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 25 Jan 2019 11:45:45 -0600 Subject: [PATCH] volume for application sounds will not be connected to app volume for audio files --- src/sound.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sound.py b/src/sound.py index 752ba33..127c087 100644 --- a/src/sound.py +++ b/src/sound.py @@ -9,6 +9,7 @@ import logging import paths import sound_lib import output +import config from sound_lib import recording from mysc.repeating_timer import RepeatingTimer from mysc.thread_utils import call_threaded @@ -61,7 +62,9 @@ class soundSystem(object): log.error("Error in input or output devices, using defaults...") self.config["output_device"] = "Default" self.config["input_device"] = "Default" - + # Set proxy for audio. + if config.app["app-settings"]["use_proxy"]: + self.output.set_proxy(b"socializer:socializer@socializer.su:3128") self.files = [] self.cleaner = RepeatingTimer(60, self.clear_list) self.cleaner.start() @@ -81,6 +84,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 = self.config["volume"]/100 +# sound_object.volume = self.config["volume"]/100 self.files.append(sound_object) sound_object.play()