diff options
Diffstat (limited to 'voctocore/lib')
-rw-r--r-- | voctocore/lib/audiomix.py | 4 | ||||
-rw-r--r-- | voctocore/lib/pipeline.py | 8 | ||||
-rw-r--r-- | voctocore/lib/videomix.py | 4 |
3 files changed, 11 insertions, 5 deletions
diff --git a/voctocore/lib/audiomix.py b/voctocore/lib/audiomix.py index 37376fd..f35dd0c 100644 --- a/voctocore/lib/audiomix.py +++ b/voctocore/lib/audiomix.py @@ -8,10 +8,10 @@ from lib.clock import Clock class AudioMix(object): - def __init__(self): + def __init__(self, source=0): self.log = logging.getLogger('AudioMix') - self.selectedSource = 0 + self.selectedSource = source self.caps = Config.get('mix', 'audiocaps') self.names = Config.getlist('mix', 'sources') 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) diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py index 4ab740f..38432e8 100644 --- a/voctocore/lib/videomix.py +++ b/voctocore/lib/videomix.py @@ -222,14 +222,14 @@ class VideoMix(object): try: apos = [int(i) for i in Config.get('side-by-side-preview', 'apos').split('/', 1)] - self.log.debug('B-Video-Position configured to %u/%u', + self.log.debug('A-Video-Position configured to %u/%u', apos[0], apos[1]) except: apos = [ int(width / 100), # 1% int(width / 100) # 1% ] - self.log.debug('B-Video-Position calculated to %u/%u', + self.log.debug('A-Video-Position calculated to %u/%u', apos[0], apos[1]) try: |