AudioDevice.py : Change default channel count from 1 (mono) to 2 (stereo).

This commit is contained in:
kevin 2020-11-25 14:42:40 -05:00
parent a163756f04
commit c017cafe51

View File

@ -18,7 +18,7 @@ class AudioDevice(object):
self.bufL = [] self.bufL = []
self.bufIdx = -1 self.bufIdx = -1
self.srate = 0 self.srate = 0
self.ch_cnt = 1 self.ch_cnt = 2
def setup( self, **kwargs ): def setup( self, **kwargs ):
@ -63,11 +63,11 @@ class AudioDevice(object):
} }
return d return d
def get_port_list( self, inFl ): def get_port_list( self, inFl ):
devLabelL = str(sd.query_devices()).split("\n") devLabelL = str(sd.query_devices()).split("\n")
portL = [] portL = []
for i,dev in enumerate(sd.query_devices()): for i,dev in enumerate(sd.query_devices()):
isInputFl = dev['max_input_channels'] > 0 isInputFl = dev['max_input_channels'] > 0