summaryrefslogtreecommitdiff
path: root/voctogui
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-06-18 19:20:31 +0200
committerMaZderMind <git@mazdermind.de>2015-06-18 19:20:31 +0200
commit1cf458baa8219a7f30d37a574f0201b0c7285ef1 (patch)
treec207c5af4d2881c279cd3d0e31fd76f922282f74 /voctogui
parentff22a8409194cc499f2f9889d88cee2be2b731c8 (diff)
Make Audio-Output configurable
Diffstat (limited to 'voctogui')
-rw-r--r--voctogui/default-config.ini3
-rw-r--r--voctogui/lib/ui.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/voctogui/default-config.ini b/voctogui/default-config.ini
index 6bc1d34..28ffc0c 100644
--- a/voctogui/default-config.ini
+++ b/voctogui/default-config.ini
@@ -1,3 +1,6 @@
[previews]
width=320
#height=180
+
+[mainvideo]
+playaudio=false
diff --git a/voctogui/lib/ui.py b/voctogui/lib/ui.py
index e066a90..ebf412e 100644
--- a/voctogui/lib/ui.py
+++ b/voctogui/lib/ui.py
@@ -28,7 +28,8 @@ class Ui(UiBuilder):
def configure_video_main(self):
video = self.find_widget_recursive(self.win, 'video_main')
audiolevel = self.find_widget_recursive(self.win, 'audiolevel_main')
- self.video_main_player = VideoDisplay(11000, video, audiolevel, playaudio=True)
+ self.video_main_player = VideoDisplay(11000, video, audiolevel,
+ playaudio=Config.getboolean('mainvideo', 'playaudio'))
def configure_video_previews(self):
sources = ['cam1', 'cam2', 'grabber']