added hostapi name to audio device

This commit is contained in:
DJ2LS 2022-11-08 09:08:44 +01:00
parent 37c69031da
commit 3c0e0b150d

View file

@ -52,7 +52,10 @@ def device_crc(device) -> str:
crc_hwid = crc_algorithm(bytes(f"{device}", encoding="utf-8")) crc_hwid = crc_algorithm(bytes(f"{device}", encoding="utf-8"))
crc_hwid = crc_hwid.to_bytes(2, byteorder="big") crc_hwid = crc_hwid.to_bytes(2, byteorder="big")
crc_hwid = crc_hwid.hex() crc_hwid = crc_hwid.hex()
return f"{device['name']} [{crc_hwid}]"
hostapi_name = sd.query_hostapis(device['hostapi'])['name']
return f"{device['name']} [{hostapi_name}] [{crc_hwid}]"
def fetch_audio_devices(input_devices, output_devices): def fetch_audio_devices(input_devices, output_devices):