logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HINT_AUDIO_INCLUDE_MONITORS - A variable that causes SDL to not ignore audio "monitors".

Availability

       This hint is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                 SDL_HINT_AUDIO_INCLUDE_MONITORS(3)

Description

       This is currently only used by the PulseAudio driver.

       By  default,  SDL ignores audio devices that aren't associated with physical hardware. Changing this hint
       to "1" will expose anything SDL sees that appears to be an audio source or sink. This will add  "devices"
       to the list that the user probably doesn't want or need, but it can be useful in scenarios where you want
       to hook up SDL to some sort of virtual device, etc.

       The variable can be set to the following values:

       • "0": Audio monitor devices will be ignored. (default)

       • "1": Audio monitor devices will show up in the device list.

       This hint should be set before SDL is initialized.

Name

       SDL_HINT_AUDIO_INCLUDE_MONITORS - A variable that causes SDL to not ignore audio "monitors".

Synopsis

#include<SDL3/SDL_hints.h>#defineSDL_HINT_AUDIO_INCLUDE_MONITORS"SDL_AUDIO_INCLUDE_MONITORS"

See Also