aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-09-30 22:02:23 +0200
committerdec05eba <dec05eba@protonmail.com>2022-09-30 22:02:23 +0200
commitf7606a144b7147e493304278d321ab2ed7996bb8 (patch)
tree0571a158e1da5824749958fc5db68a5bf02a4a82 /include
parent09ad7a1eb5ff4a1d00776396c4582252e4bd83fc (diff)
Give error when using an invalid audio input with pipewire
Diffstat (limited to 'include')
-rw-r--r--include/sound.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sound.hpp b/include/sound.hpp
index 39d9248..d8ad322 100644
--- a/include/sound.hpp
+++ b/include/sound.hpp
@@ -18,11 +18,19 @@
#ifndef GPU_SCREEN_RECORDER_H
#define GPU_SCREEN_RECORDER_H
+#include <vector>
+#include <string>
+
typedef struct {
void *handle;
unsigned int frames;
} SoundDevice;
+struct AudioInput {
+ std::string name;
+ std::string description;
+};
+
/*
Get a sound device by name, returning the device into the @device parameter.
The device should be closed with @sound_device_close after it has been used
@@ -39,4 +47,6 @@ void sound_device_close(SoundDevice *device);
*/
int sound_device_read_next_chunk(SoundDevice *device, void **buffer);
+std::vector<AudioInput> get_pulseaudio_inputs();
+
#endif /* GPU_SCREEN_RECORDER_H */