diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-04-01 17:24:39 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-04-01 17:24:39 (GMT) |
commit | 040ab8ed5b92b25fba41fb066f80a2cadaa79819 (patch) | |
tree | 297375091ecb2d67a63f653c75e5255478cc54ee /plugins/audio_sensors/audiograb.py | |
parent | c1feef635fcc370621d0e49e94ff14db19c1e937 (diff) |
more xo4 changes
Diffstat (limited to 'plugins/audio_sensors/audiograb.py')
-rw-r--r-- | plugins/audio_sensors/audiograb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/audio_sensors/audiograb.py b/plugins/audio_sensors/audiograb.py index 8ce89ad..228e4c2 100644 --- a/plugins/audio_sensors/audiograb.py +++ b/plugins/audio_sensors/audiograb.py @@ -25,7 +25,7 @@ import traceback from string import find from threading import Timer -from TurtleArt.taconstants import XO1 +from TurtleArt.taconstants import XO1, XO4 from TurtleArt.tautils import debug_output # Initial device settings @@ -63,7 +63,8 @@ class AudioGrab(): self.temp_buffer = [0] self.rate = RATE - if self.parent.hw == XO1: + # Force XO1 and XO4 to use just 1 channel + if self.parent.hw in [XO1, XO4]: self.channels = 1 else: self.channels = None |