Scroll to navigation

SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE(3) SDL3 FUNCTIONS SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE(3)

NAME

SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE - Specify the default ALSA audio device name.

HEADER FILE

Defined in SDL3/SDL_hints.h

SYNOPSIS

#include "SDL3/SDL.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. By default if 4 channel audio is requested, the "plug:surround40" device will be opened and if 6 channel audio is requested the "plug:surround51" device will be opened.

This hint should be set before an audio device is opened.

AVAILABILITY

This hint is available since SDL 3.1.3.

SDL 3.1.6 Simple Directmedia Layer