mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-15 06:16:00 +00:00
Added SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE
This commit is contained in:
@@ -228,7 +228,7 @@ static const char *get_audio_device(void *handle, const int channels)
|
||||
|
||||
ALSA_Device *dev = (ALSA_Device *)handle;
|
||||
if (SDL_strcmp(dev->name, "default") == 0) {
|
||||
const char *device = SDL_getenv("AUDIODEV"); // Is there a standard variable name?
|
||||
const char *device = SDL_GetHint(SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE);
|
||||
if (device) {
|
||||
return device;
|
||||
} else if (channels == 6) {
|
||||
|
Reference in New Issue
Block a user