mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
Added logging for low latency audio state
This commit is contained in:
parent
908bd84c5e
commit
6836ef8fd2
1 changed files with 3 additions and 0 deletions
|
|
@ -317,7 +317,10 @@ static bool BuildAAudioStream(SDL_AudioDevice *device)
|
|||
ctx.AAudioStreamBuilder_setDataCallback(builder, AAUDIO_dataCallback, device);
|
||||
// Some devices have flat sounding audio when low latency mode is enabled, but this is a better experience for most people
|
||||
if (SDL_GetHintBoolean("SDL_ANDROID_LOW_LATENCY_AUDIO", true)) {
|
||||
SDL_Log("Low latency audio enabled\n");
|
||||
ctx.AAudioStreamBuilder_setPerformanceMode(builder, AAUDIO_PERFORMANCE_MODE_LOW_LATENCY);
|
||||
} else {
|
||||
SDL_Log("Low latency audio disabled\n");
|
||||
}
|
||||
|
||||
LOGI("AAudio Try to open %u hz %u bit %u channels %s samples %u",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue