aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 */