From 197e6d8244af1132441f7bba4a904c205a8d4d63 Mon Sep 17 00:00:00 2001 From: Martin Keßler Date: Sun, 6 Nov 2016 13:16:37 +0100 Subject: added configuration option to specify initial audio source if such an initial source is specified, removed the GUI element to change it later. this is to avoid accidentally changing the source during production. --- voctocore/lib/pipeline.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'voctocore/lib/pipeline.py') diff --git a/voctocore/lib/pipeline.py b/voctocore/lib/pipeline.py index 1a1349e..6213ac6 100644 --- a/voctocore/lib/pipeline.py +++ b/voctocore/lib/pipeline.py @@ -60,8 +60,14 @@ class Pipeline(object): self.log.info('Creating Videmixer') self.vmix = VideoMix() + # check if there is an audio source preconfigured + try: + audiosource = names.index(Config.get('mix', 'audiosource')) + except: + audiosource = 0 + self.log.info('Creating Audiomixer') - self.amix = AudioMix() + self.amix = AudioMix(audiosource) port = 16000 self.log.info('Creating Mixer-Background VSource at tcp-port %u', port) -- cgit v1.2.3