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:
@@ -15,7 +15,7 @@ A TJA player and Taiko simulator written in Python using the [raylib](https://ww
|
||||
|
||||
- Cross-platform compatibility (Windows, macOS, Linux)
|
||||
- Controller Support
|
||||
- Low latency audio via ASIO
|
||||
- Low latency audio via ASIO or WDM-KS
|
||||
- Recursive Song Select Menu
|
||||
- 1080p Support (And higher if you give me assets!)
|
||||
|
||||
@@ -35,8 +35,8 @@ A TJA player and Taiko simulator written in Python using the [raylib](https://ww
|
||||
|
||||
## FAQ
|
||||
|
||||
Q: I'm on Windows and I have no sound!<br>
|
||||
A: Change your `device_type` in `config.toml` to `0` (you can experiment with other values which will give better latency)<br>
|
||||
Q: I'm on Windows and my latency is really high!<br>
|
||||
A: Change your `device_type` in game settings to `WDM-KS`, `WASAPI`, or `ASIO` if your computer supports it<br>
|
||||
<br>
|
||||
Q: I want to add more song paths!<br>
|
||||
A: You can either append new folders:<br>
|
||||
|
||||
@@ -60,9 +60,9 @@ right_don = [17]
|
||||
right_kat = [12]
|
||||
|
||||
[audio]
|
||||
# device_type: -1 = default, this will be set on first launch to the recommended setting
|
||||
# device_type: 0 = default, this will be set on first launch to the recommended setting
|
||||
# Windows users should generally pick 4 (WDM-KS) and Linux users should pick 0 (ALSA)
|
||||
device_type = -1
|
||||
device_type = 0
|
||||
sample_rate = 44100
|
||||
# buffer_size: Size in samples per audio buffer
|
||||
# - 0 = let driver choose (may result in very small buffers with ASIO, typically 64)
|
||||
|
||||
@@ -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