From 040ab8ed5b92b25fba41fb066f80a2cadaa79819 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 01 Apr 2013 17:24:39 +0000 Subject: more xo4 changes --- (limited to 'plugins') 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 -- cgit v0.9.1