SDL_HINT_AUD...LUDE_MONITORS(3)
π SDL_HINT_AUDIO_INCLUDE_MONITORS(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's all about SDL_HINT_AUDIO_INCLUDE_MONITORS and honestly it's giving "secret settings menu" energy β¨
πΈ NAME πΈ
SDL_HINT_AUDIO_INCLUDE_MONITORS β a variable that makes SDL not ignore audio "monitors". no cap, that's literally its whole job π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_AUDIO_INCLUDE_MONITORS "SDL_AUDIO_INCLUDE_MONITORS"
π¦ DESCRIPTION π¦
okay so real talk: rn this hint is only used by the PulseAudio driver. that's it. just PulseAudio being PulseAudio π
by default, SDL lowkey ignores any audio device that isn't attached to actual physical hardware. like, if it can't touch it, it doesn't wanna know it π
but the way that changing this hint to "1" works is chef's kiss β it makes SDL expose everything it sees that looks like an audio source or sink. and yeah, that means you're gonna get "devices" showing up in the list that the user probably does not want or need, bestie π but it's highkey useful when you're trying to hook SDL up to some sort of virtual device, etc. so like, situational queen behavior π
the variable can be set to these values:
"0"β audio monitor devices will be ignored. (this is the default, so if you do nothing, you get this π«Ά)"1"β audio monitor devices will show up in the device list. β¨ they're here, they're visible, they're in the lineup π
β οΈ super important: this hint should be set before SDL is initialized. set it late and it's giving "too late bestie, doors are closed" πͺπ
π AVAILABILITY π
this hint has been available since SDL 3.2.0 β so if you're on anything older, sorry babe, no monitor-including for you π
and that's the whole page fr fr π this was brought to you by Simple Directmedia Layer, version SDL 3.4.18 β mwah, slay, periodt, go include those monitors responsibly πππ§
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms