Fix identification of audio devices

This commit is contained in:
Pedro 2023-11-15 21:14:56 +01:00
parent be10ffd564
commit 924871859f

View file

@ -49,7 +49,7 @@ def get_audio_devices():
def device_crc(device) -> str:
crc_hwid = crc_algorithm(bytes(f"{device}", encoding="utf-8"))
crc_hwid = crc_algorithm(bytes(f"{device['name']}.{device['hostapi']}", encoding="utf-8"))
crc_hwid = crc_hwid.to_bytes(2, byteorder="big")
crc_hwid = crc_hwid.hex()
return crc_hwid