Audio device capture: make default output/input switch recording source the default output/input is changed in the audio server

This commit is contained in:
dec05eba
2025-02-25 22:55:27 +01:00
parent d9f61602d0
commit d9eb44fae0
3 changed files with 179 additions and 30 deletions

View File

@@ -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);