mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Update utils.py
This commit is contained in:
@@ -94,6 +94,8 @@ def get_config() -> Config:
|
||||
lib = ffi.dlopen("libaudio.dll")
|
||||
for i in range(5):
|
||||
result = lib.get_host_api_name(i) # type: ignore
|
||||
if result == ffi.NULL:
|
||||
continue
|
||||
result = ffi.string(result)
|
||||
if isinstance(result, bytes):
|
||||
result = result.decode('utf-8')
|
||||
|
||||
Reference in New Issue
Block a user