Browse Source

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

master
kevin 3 years ago
parent
commit
c017cafe51
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      AudioDevice.py

+ 3
- 3
AudioDevice.py View File

@@ -18,7 +18,7 @@ class AudioDevice(object):
18 18
         self.bufL          = []
19 19
         self.bufIdx        = -1
20 20
         self.srate         = 0
21
-        self.ch_cnt        = 1
21
+        self.ch_cnt        = 2
22 22
         
23 23
 
24 24
     def setup( self, **kwargs  ):
@@ -63,11 +63,11 @@ class AudioDevice(object):
63 63
             }
64 64
 
65 65
         return d
66
-    
66
+
67 67
     def get_port_list( self, inFl ):
68 68
 
69 69
         devLabelL = str(sd.query_devices()).split("\n")
70
-
70
+        
71 71
         portL = []
72 72
         for i,dev in enumerate(sd.query_devices()):
73 73
             isInputFl =  dev['max_input_channels']  > 0

Loading…
Cancel
Save