mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
Update audio.py
This commit is contained in:
@@ -153,9 +153,9 @@ class AudioEngine:
|
||||
else:
|
||||
id = api_id
|
||||
result = lib.get_host_api_name(id) # type: ignore
|
||||
result = ffi.string(result)
|
||||
if result == ffi.NULL:
|
||||
return ""
|
||||
result = ffi.string(result)
|
||||
if isinstance(result, bytes):
|
||||
result = result.decode('utf-8')
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user