diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-02 00:12:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-02 00:14:01 +0200 |
commit | 844a54b43b3330711e5f3c5e4680f960538f8eb5 (patch) | |
tree | 32275e752fdd496ac660376a817a7c2cd7c57d14 /include | |
parent | 7e1be0192d39421daa2b29fbcb1838889704dd8a (diff) |
Allow using 'default_output' / 'default_input' as audio devices (-a option), add --list-audio-devices option
Diffstat (limited to 'include')
-rw-r--r-- | include/sound.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sound.hpp b/include/sound.hpp index 77bec99..7bcc120 100644 --- a/include/sound.hpp +++ b/include/sound.hpp @@ -31,6 +31,12 @@ struct AudioInput { std::string description; }; +struct AudioDevices { + std::string default_output; + std::string default_input; + std::vector<AudioInput> audio_inputs; +}; + struct MergedAudioInputs { std::vector<AudioInput> audio_inputs; }; @@ -57,6 +63,6 @@ void sound_device_close(SoundDevice *device); */ int sound_device_read_next_chunk(SoundDevice *device, void **buffer, double timeout_sec, double *latency_seconds); -std::vector<AudioInput> get_pulseaudio_inputs(); +AudioDevices get_pulseaudio_inputs(); #endif /* GPU_SCREEN_RECORDER_H */ |