From f7606a144b7147e493304278d321ab2ed7996bb8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 30 Sep 2022 22:02:23 +0200 Subject: Give error when using an invalid audio input with pipewire --- include/sound.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 +#include + 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 get_pulseaudio_inputs(); + #endif /* GPU_SCREEN_RECORDER_H */ -- cgit v1.2.3