Removed the SDL_AUDIO_ALSA_DEBUG environment variable

The debug info is available if you set SDL_HINT_LOGGING to "audio=debug"
This commit is contained in:
Sam Lantinga committed 2024-08-05 08:54:10 -07:00
1 parent f05cd85048
commit ff0e42c51c
2 files changed
+6 -10

No files matched your search

+5 -10
View File
@@ -426,16 +426,11 @@ static int ALSA_set_buffer_size(SDL_AudioDevice *device, snd_pcm_hw_params_t *pa
device->sample_frames = persize;
// This is useful for debugging
if (SDL_getenv("SDL_AUDIO_ALSA_DEBUG")) {
snd_pcm_uframes_t bufsize;
ALSA_snd_pcm_hw_params_get_buffer_size(hwparams, &bufsize);
SDL_LogError(SDL_LOG_CATEGORY_AUDIO,
"ALSA: period size = %ld, periods = %u, buffer size = %lu",
persize, periods, bufsize);
}
snd_pcm_uframes_t bufsize;
ALSA_snd_pcm_hw_params_get_buffer_size(hwparams, &bufsize);
SDL_LogDebug(SDL_LOG_CATEGORY_AUDIO,
"ALSA: period size = %ld, periods = %u, buffer size = %lu",
persize, periods, bufsize);
return 0;
}