summaryrefslogtreecommitdiff
path: root/voctocore/lib/audiomix.py
diff options
context:
space:
mode:
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 !