mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
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
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user