mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
change audio defaults for windows
This commit is contained in:
@@ -143,13 +143,6 @@ class AudioEngine:
|
||||
|
||||
def get_host_api_name(self, api_id: int) -> str:
|
||||
"""Returns the name of the host API with the given ID"""
|
||||
if api_id == -1:
|
||||
if sys.platform == "win32":
|
||||
return "Windows WDM-KS"
|
||||
elif sys.platform == "darwin":
|
||||
return "Core Audio"
|
||||
else:
|
||||
return "ALSA"
|
||||
result = lib.get_host_api_name(api_id) # type: ignore
|
||||
if result == ffi.NULL:
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user