mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
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:
@@ -802,6 +802,7 @@ The following hints have been removed:
|
|||||||
* SDL_HINT_AUDIO_DEVICE_APP_NAME - replaced by either using the appname param to SDL_SetAppMetadata() or setting SDL_PROP_APP_METADATA_NAME_STRING with SDL_SetAppMetadataProperty()
|
* SDL_HINT_AUDIO_DEVICE_APP_NAME - replaced by either using the appname param to SDL_SetAppMetadata() or setting SDL_PROP_APP_METADATA_NAME_STRING with SDL_SetAppMetadataProperty()
|
||||||
|
|
||||||
The following environment variables have been removed:
|
The following environment variables have been removed:
|
||||||
|
* SDL_AUDIO_ALSA_DEBUG - replaced by setting the hint SDL_HINT_LOGGING to "audio=debug"
|
||||||
* SDL_DUMMYAUDIODELAY - replaced with the hint SDL_HINT_AUDIO_DUMMY_TIMESCALE which allows scaling the audio time rather than specifying an absolute delay.
|
* SDL_DUMMYAUDIODELAY - replaced with the hint SDL_HINT_AUDIO_DUMMY_TIMESCALE which allows scaling the audio time rather than specifying an absolute delay.
|
||||||
|
|
||||||
The following functions have been removed:
|
The following functions have been removed:
|
||||||
|
@@ -426,16 +426,11 @@ static int ALSA_set_buffer_size(SDL_AudioDevice *device, snd_pcm_hw_params_t *pa
|
|||||||
device->sample_frames = persize;
|
device->sample_frames = persize;
|
||||||
|
|
||||||
// This is useful for debugging
|
// This is useful for debugging
|
||||||
if (SDL_getenv("SDL_AUDIO_ALSA_DEBUG")) {
|
|
||||||
snd_pcm_uframes_t bufsize;
|
snd_pcm_uframes_t bufsize;
|
||||||
|
|
||||||
ALSA_snd_pcm_hw_params_get_buffer_size(hwparams, &bufsize);
|
ALSA_snd_pcm_hw_params_get_buffer_size(hwparams, &bufsize);
|
||||||
|
SDL_LogDebug(SDL_LOG_CATEGORY_AUDIO,
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_AUDIO,
|
|
||||||
"ALSA: period size = %ld, periods = %u, buffer size = %lu",
|
"ALSA: period size = %ld, periods = %u, buffer size = %lu",
|
||||||
persize, periods, bufsize);
|
persize, periods, bufsize);
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user