summaryrefslogtreecommitdiff
path: root/voctocore/lib/commands.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-11 00:32:50 +0200
committerMaZderMind <github@mazdermind.de>2015-05-11 00:32:50 +0200
commit031632245e147e4532b252f91e31631570aa0fd3 (patch)
tree181833f353f7bbcf68a629bf323deba026d2d200 /voctocore/lib/commands.py
parent10058b623dee99ed54421ff204b51adcc9a379d0 (diff)
a rudimentary audio pipeline
Diffstat (limited to 'voctocore/lib/commands.py')
-rw-r--r--voctocore/lib/commands.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/voctocore/lib/commands.py b/voctocore/lib/commands.py
index 05db54c..9b35bf2 100644
--- a/voctocore/lib/commands.py
+++ b/voctocore/lib/commands.py
@@ -36,6 +36,10 @@ class ControlServerCommands():
return True
def set_composite_mode(self, composite_mode):
- mode = CompositeModes[composite_mode]
+ try:
+ mode = CompositeModes[composite_mode]
+ except KeyError as e:
+ raise KeyError("composite-mode %s unknown" % composite_mode)
+
self.pipeline.vmixer.setCompositeMode(mode)
return True