aboutsummaryrefslogtreecommitdiff
path: root/include/sound.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-02-27 01:43:16 +0100
committerdec05eba <dec05eba@protonmail.com>2025-02-27 01:43:16 +0100
commitae2929d4f723cef7a148c671f0c71e5cb0f87592 (patch)
tree80f9ec5d58b69c1c35afbd9a21bdff9a5b729df1 /include/sound.hpp
parentd9eb44fae0953863b49c46666380dbffaec60b6b (diff)
Pipewire: auto change default_output/default_input connected nodes when the default devices are changed in system audio settings
Diffstat (limited to 'include/sound.hpp')
-rw-r--r--include/sound.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound.hpp b/include/sound.hpp
index 95bd6f2..87e2e2d 100644
--- a/include/sound.hpp
+++ b/include/sound.hpp
@@ -62,6 +62,8 @@ typedef enum {
/*
Get a sound device by name, returning the device into the |device| parameter.
|device_name| can be a device name or "default_output" or "default_input".
+ If the device name is "default_output" or "default_input" then it will automatically switch which
+ device is records from when the default output/input is changed in the system audio settings.
Returns 0 on success, or a negative value on failure.
*/
int sound_device_get_by_name(SoundDevice *device, const char *device_name, const char *description, unsigned int num_channels, unsigned int period_frame_size, AudioFormat audio_format);