aboutsummaryrefslogtreecommitdiff
path: root/include/sound.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-02-25 22:55:27 +0100
committerdec05eba <dec05eba@protonmail.com>2025-02-26 18:08:00 +0100
commitd9eb44fae0953863b49c46666380dbffaec60b6b (patch)
tree0177ab184344242587babeecb0ffd1b243231d5c /include/sound.hpp
parentd9f61602d002d6eeb94d2f299ad83260bd21db7d (diff)
Audio device capture: make default output/input switch recording source the default output/input is changed in the audio server
Diffstat (limited to 'include/sound.hpp')
-rw-r--r--include/sound.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound.hpp b/include/sound.hpp
index 215e167..95bd6f2 100644
--- a/include/sound.hpp
+++ b/include/sound.hpp
@@ -61,6 +61,7 @@ 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".
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);