Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/audiograb.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-12-18 18:45:10 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-12-18 18:45:10 (GMT)
commit0d20e434f5fd4f3a7951895d8ce5ce4caf8f6e5b (patch)
treede5708d5ec1b17ec3fe8a3dbee2f0d7066d84d2d /audiograb.py
parent09109307736da7fb6e79033acbab9a324e461621 (diff)
reset pipeline with every mode change
Diffstat (limited to 'audiograb.py')
-rw-r--r--audiograb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/audiograb.py b/audiograb.py
index 97886a2..e7a743d 100644
--- a/audiograb.py
+++ b/audiograb.py
@@ -838,10 +838,10 @@ class AudioGrab():
log.debug('parameters: dc mode: %s, bias: %s, gain: %s, boost: %s' % (
str(mode), str(bias), str(gain), str(boost)))
- if mode is not None and \
- (mode != self.get_dc_mode()) or self.channels == 1):
+
+ if mode is not None:
# If we change to/from dc mode, we need to rebuild the pipelines
- log.debug('dc mode has changed')
+ log.debug('sensor mode has changed')
self.stop_grabbing()
if self.channels > 1:
self._unlink_sink_queues()