From c017cafe513171164986f87d9c30d992a56e394a Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 25 Nov 2020 14:42:40 -0500 Subject: [PATCH] AudioDevice.py : Change default channel count from 1 (mono) to 2 (stereo). --- AudioDevice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AudioDevice.py b/AudioDevice.py index 8d89ffc..fe5128a 100644 --- a/AudioDevice.py +++ b/AudioDevice.py @@ -18,7 +18,7 @@ class AudioDevice(object): self.bufL = [] self.bufIdx = -1 self.srate = 0 - self.ch_cnt = 1 + self.ch_cnt = 2 def setup( self, **kwargs ): @@ -63,11 +63,11 @@ class AudioDevice(object): } return d - + def get_port_list( self, inFl ): devLabelL = str(sd.query_devices()).split("\n") - + portL = [] for i,dev in enumerate(sd.query_devices()): isInputFl = dev['max_input_channels'] > 0