From 0ae3c1f82702b07e5356a8e271e617c7dfe7135c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 28 Nov 2024 11:42:39 +0100 Subject: Repurpose '/' in audio argument to set the audio track name, not the recording node name in pulseaudio/pipewire. This also now allows setting audio track name when recording application audio --- include/sound.hpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/sound.hpp b/include/sound.hpp index b3e34cc..21bf0bf 100644 --- a/include/sound.hpp +++ b/include/sound.hpp @@ -26,6 +26,17 @@ typedef struct { unsigned int frames; } SoundDevice; +struct AudioDevice { + std::string name; + std::string description; +}; + +struct AudioDevices { + std::string default_output; + std::string default_input; + std::vector audio_inputs; +}; + enum class AudioInputType { DEVICE, APPLICATION @@ -33,18 +44,12 @@ enum class AudioInputType { struct AudioInput { std::string name; - std::string description; AudioInputType type = AudioInputType::DEVICE; bool inverted = false; }; -struct AudioDevices { - std::string default_output; - std::string default_input; - std::vector audio_inputs; -}; - struct MergedAudioInputs { + std::string track_name; std::vector audio_inputs; }; -- cgit v1.2.3