aboutsummaryrefslogtreecommitdiff
path: root/include/sound.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-28 11:42:39 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-28 11:42:39 +0100
commit0ae3c1f82702b07e5356a8e271e617c7dfe7135c (patch)
tree6d6f6d864c1636d5012a558fe9f41a75e2a4c4c9 /include/sound.hpp
parentc2cd9c347332573365942552e9a91c5853d7818a (diff)
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
Diffstat (limited to 'include/sound.hpp')
-rw-r--r--include/sound.hpp19
1 files changed, 12 insertions, 7 deletions
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<AudioDevice> 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<AudioInput> audio_inputs;
-};
-
struct MergedAudioInputs {
+ std::string track_name;
std::vector<AudioInput> audio_inputs;
};