mirror of https://github.com/DJ2LS/FreeDATA
Update list_audio_devices tool with new id algo
This commit is contained in:
parent
0916ef4ce7
commit
6e78b4d37c
|
@ -21,7 +21,7 @@ def list_audio_devices():
|
|||
print(str(device["native_index"]) + "\t" + device["id"] + " \t " + device["name"].strip().ljust(50) + device["api"])
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue