mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 17:37:39 +00:00
pulseaudio: Optionally add "monitor" sources to device list.
There's a new hint to enable this. Fixes #2917.
This commit is contained in:
parent
8d790b10f8
commit
736a424ff4
2 changed files with 27 additions and 2 deletions
|
@ -1675,6 +1675,25 @@ extern "C" {
|
|||
*/
|
||||
#define SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING "SDL_XINPUT_USE_OLD_JOYSTICK_MAPPING"
|
||||
|
||||
/**
|
||||
* \brief A variable that causes SDL to not ignore audio "monitors"
|
||||
*
|
||||
* This is currently only used for PulseAudio and ignored elsewhere.
|
||||
*
|
||||
* 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 default value is "0". This hint must be set before SDL_Init().
|
||||
*
|
||||
* This hint is available since SDL 2.0.16. Before then, virtual devices are
|
||||
* always ignored.
|
||||
*/
|
||||
#define SDL_HINT_AUDIO_INCLUDE_MONITORS "SDL_AUDIO_INCLUDE_MONITORS"
|
||||
|
||||
|
||||
/**
|
||||
* \brief An enumeration of hint priorities
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue