AudioDevice.py : Change default channel count from 1 (mono) to 2 (stereo).
This commit is contained in:
parent
a163756f04
commit
c017cafe51
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user