mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
typos...
and also a hidden windows test ;-)
This commit is contained in:
parent
306f202c5e
commit
d5ddb95644
1 changed files with 11 additions and 6 deletions
|
@ -288,13 +288,18 @@ class CMDTCPRequestHandler(socketserver.BaseRequestHandler):
|
||||||
p = pyaudio.PyAudio()
|
p = pyaudio.PyAudio()
|
||||||
# else do it the default way
|
# else do it the default way
|
||||||
except:
|
except:
|
||||||
p = pyaudio.Pyaudio()
|
p = pyaudio.PyAudio()
|
||||||
|
|
||||||
for i in range(0, p.get_device_count()):
|
for i in range(0, p.get_device_count()):
|
||||||
|
# we need to do a try exception, beacuse for windows theres now audio device range
|
||||||
maxInputChannels = p.get_device_info_by_host_api_device_index(0, i).get('maxInputChannels')
|
try:
|
||||||
maxOutputChannels = p.get_device_info_by_host_api_device_index(0, i).get('maxOutputChannels')
|
maxInputChannels = p.get_device_info_by_host_api_device_index(0, i).get('maxInputChannels')
|
||||||
name = p.get_device_info_by_host_api_device_index(0, i).get('name')
|
maxOutputChannels = p.get_device_info_by_host_api_device_index(0, i).get('maxOutputChannels')
|
||||||
|
name = p.get_device_info_by_host_api_device_index(0, i).get('name')
|
||||||
|
except:
|
||||||
|
maxInputChannels = 0
|
||||||
|
maxOutputChannels = 0
|
||||||
|
name = ''
|
||||||
#crc_name = crc_algorithm(bytes(name, encoding='utf-8'))
|
#crc_name = crc_algorithm(bytes(name, encoding='utf-8'))
|
||||||
#crc_name = crc_name.to_bytes(2, byteorder='big')
|
#crc_name = crc_name.to_bytes(2, byteorder='big')
|
||||||
#crc_name = crc_name.hex()
|
#crc_name = crc_name.hex()
|
||||||
|
@ -383,6 +388,7 @@ if __name__ == '__main__':
|
||||||
HAMLIB_USE_RIGCTL = ARGS.hamlib_use_rigctl
|
HAMLIB_USE_RIGCTL = ARGS.hamlib_use_rigctl
|
||||||
if HAMLIB_USE_RIGCTL:
|
if HAMLIB_USE_RIGCTL:
|
||||||
structlog.get_logger("structlog").warning("using hamlib rigctl module...")
|
structlog.get_logger("structlog").warning("using hamlib rigctl module...")
|
||||||
|
hamlib_version = 0
|
||||||
import rigctl as rig
|
import rigctl as rig
|
||||||
else:
|
else:
|
||||||
structlog.get_logger("structlog").info("using hamlib rig module...")
|
structlog.get_logger("structlog").info("using hamlib rig module...")
|
||||||
|
@ -391,4 +397,3 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
DAEMON_THREAD = threading.Thread(target=start_daemon, name="daemon")
|
DAEMON_THREAD = threading.Thread(target=start_daemon, name="daemon")
|
||||||
DAEMON_THREAD.start()
|
DAEMON_THREAD.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue