SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE - Man Page
Specify the default ALSA audio device name.
Synopsis
#include <SDL3/SDL_hints.h> #define SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE "SDL_AUDIO_ALSA_DEFAULT_DEVICE"
Description
This variable is a specific audio device to open when the "default" audio device is used.
This hint will be ignored when opening the default playback device if SDL_HINT_AUDIO_ALSA_DEFAULT_PLAYBACK_DEVICE is set, or when opening the default recording device if SDL_HINT_AUDIO_ALSA_DEFAULT_RECORDING_DEVICE is set.
This hint should be set before an audio device is opened.
Availability
This hint is available since SDL 3.2.0.
See Also
SDL_HINT_AUDIO_ALSA_DEFAULT_PLAYBACK_DEVICE(3), SDL_HINT_AUDIO_ALSA_DEFAULT_RECORDING_DEVICE(3)
Referenced By
SDL_HINT_AUDIO_ALSA_DEFAULT_PLAYBACK_DEVICE(3), SDL_HINT_AUDIO_ALSA_DEFAULT_RECORDING_DEVICE(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS