From 031632245e147e4532b252f91e31631570aa0fd3 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 11 May 2015 00:32:50 +0200 Subject: a rudimentary audio pipeline --- voctocore/lib/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'voctocore/lib/commands.py') 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 -- cgit v1.2.3