aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-02 00:12:39 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-02 00:14:01 +0200
commit844a54b43b3330711e5f3c5e4680f960538f8eb5 (patch)
tree32275e752fdd496ac660376a817a7c2cd7c57d14 /include
parent7e1be0192d39421daa2b29fbcb1838889704dd8a (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.hpp8
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 */