diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-05-12 14:08:23 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-05-12 14:08:23 (GMT) |
commit | d5a6aa12116bfba12f387516ac1191c7610aa402 (patch) | |
tree | 20c7d925345f0a6a7e5f83a62feac0ec0cdce89b | |
parent | 95541c1397f956411000400bc25bc14a8d86599c (diff) |
audiograb.py: fix Bias and DC mode (tested on XO-1)
-rw-r--r-- | audiograb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audiograb.py b/audiograb.py index e16cab8..ce86d3b 100644 --- a/audiograb.py +++ b/audiograb.py @@ -350,22 +350,22 @@ class AudioGrab: return self._get_volume(self._master_control, 'master') def set_bias(self,bias_state=False): - self._set_mute(self._mic_bias_control, 'Mic Bias', bias_state) + self._set_mute(self._mic_bias_control, 'Mic Bias', not bias_state) def get_bias(self): """Returns the setting of Bias control i.e. True: Enabled and False: Disabled""" - return self._get_mute(self._mic_bias_control, 'Mic Bias', True) + return not self._get_mute(self._mic_bias_control, 'Mic Bias', False) def set_dc_mode(self, dc_mode = False): """Sets the DC Mode Enable control pass False to mute and True to unmute""" - self._set_mute(self._dc_control, 'DC mode', dc_mode) + self._set_mute(self._dc_control, 'DC mode', not dc_mode) def get_dc_mode(self): """Returns the setting of DC Mode Enable control i .e. True: Unmuted and False: Muted""" - return self._get_mute(self._dc_control, 'DC mode', False) + return not self._get_mute(self._dc_control, 'DC mode', False) def set_mic_boost(self, mic_boost=False): """Sets the Mic Boost +20dB control |