Ver código fonte

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

master
kevin 3 anos atrás
pai
commit
c017cafe51
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      AudioDevice.py

+ 3
- 3
AudioDevice.py Ver arquivo

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

Carregando…
Cancelar
Salvar