summaryrefslogtreecommitdiff
path: root/voctocore/lib/audiomix.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-14 19:59:16 +0200
committerMaZderMind <github@mazdermind.de>2015-05-14 19:59:16 +0200
commit038bc89367f26fe9be8bff135c8c0eca3f9faaaf (patch)
tree692306fb3bb14b75b09056711b4fe4bfd74d2860 /voctocore/lib/audiomix.py
parent51ac59343673286cc4c5d1d9b484b1e3a8f657a5 (diff)
implement switchable preview source in mjpg coding for the GUI
Diffstat (limited to 'voctocore/lib/audiomix.py')
-rw-r--r--voctocore/lib/audiomix.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/voctocore/lib/audiomix.py b/voctocore/lib/audiomix.py
index e307527..1be32d4 100644
--- a/voctocore/lib/audiomix.py
+++ b/voctocore/lib/audiomix.py
@@ -24,11 +24,19 @@ class AudioMix(object):
pipeline = """
audiomixer name=mix !
{caps} !
- interaudiosink channel=audio_mix
+ queue !
+ tee name=tee
+
+ tee. ! queue ! interaudiosink channel=audio_mix_out
""".format(
caps=self.caps
)
+ if Config.getboolean('previews', 'enabled'):
+ pipeline += """
+ tee. ! queue ! interaudiosink channel=audio_mix_preview
+ """
+
for idx, name in enumerate(self.names):
pipeline += """
interaudiosrc channel=audio_{name}_mixer !